Incorporate a PHP file into a static page (2 posts)

  1. rogerjh
    Posted 8 years ago #

    Hi there,

    I have a PHP file that generates links on the fly from a newsfeed. The PHP file is read into a HTML page template that provides the formatting.

    I'd like to put that feature into a static page, so that the newsfeed is part of the blog pages.

    Here's the PHP file that generates the links:

    Here's the template file.

    The blog home page is here: http://www.urs.science-awards.org

    I did install and activate the plugin runPHP but I am not sure how that works.

    Any help anyone would give is much appreciate and I'll be happy to acknowledge assistance on our credits page.


  2. rogerjh
    Posted 8 years ago #


    I found this thread answered my question. http://wordpress.org/support/topic/125832?replies=18

    The template file was fine. The main thing is to make sure that the embedded php file has the right file path to call the wp-blog-header.php file (which is an admin file, not to be confused with the theme header.php).

    Then you use your page template code to fill around the php functions.

    Here's the end product: http://www.urs.science-awards.org/ugresearchnews.php

Topic Closed

This topic has been closed to new replies.

About this Topic