Support » Fixing WordPress » PHP Include for Static Page (Sell Template)

  • Resolved chris86

    (@chris86)


    I’ve created a static page (using the sell template) within Semiologic on which I plan to display RSS news feeds. I’ve got the feed (it’s a feed aggregator) as a PHP include. I’m supposed to add the following code to my page.

    <?php
    include (“http://app.feeddigest.com/digest3/myfeedIDhere.html”);
    ?>

    I’ve pasted the code into the static page (in the Compose/Edit area of the page in the Admin section), saved changes and previewed the page. Unfortunately, the page shows **absolutely nothing** when I view my site.

    (Btw, I have Rich Text Editor turned off, so I should be able to enter PHP code directly into the box, right?)

    I know nothing about PHP includes…what am I doing wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • That’s not the way it is going to work. You need to download and install the PHP Exec plugin in order to execute php script in your post. You can download the plugin here:

    http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/

    Awesome plugin. Thanks, SyncMaster. That did the trick. Problem solved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Include for Static Page (Sell Template)’ is closed to new replies.