You are here:  » Wordpress integration is blank

Support Forum



Wordpress integration is blank

Submitted by steve on Wed, 2009-02-11 20:49 in

Hi,

Im trying to show prices on my wordpress site and I have followed your instructions found here http://www.pricetapestry.com/node/2289

I am using the Raw HTML wordpress plugin to execute php. When I type this into the wordpress post nothing appears. The content of the post is there with no signs of the comparison table. Should I be using a different plugin?

<?php
  $common_baseHREF 
"http://www.mysite.co.uk/comparison/";
  
$common_path "/home/www/mysite.co.uk/comparison/";
  
$_GET["q"] = "Poster";
  require(
$common_path."pricesExternal.php");
?>

Thanks for your help, Steve

Submitted by support on Thu, 2009-02-12 09:42

Hello Steve,

The very first thing to check, could you use your web browser's View > Source.. menu to study the HTML being generated by your page, and see if you can see within it the unparsed PHP code as posted above. If you can, that would indicate that the Raw HTML module is not configured to allow PHP code to be included. If you cannot see the code however, could you perhaps try a very simple test to confirm that it is functioning correctly - instead of using the priceExternal code above, just try something like:

<?php
  
print "It works!";
?>

Cheers,
David.