WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] PHP Include for Static Page (Sell Template) (3 posts)

  1. chris86
    Member
    Posted 8 years ago #

    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?

  2. SyncMaster
    Member
    Posted 8 years ago #

    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/

  3. chris86
    Member
    Posted 8 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.