• Hi all,

    I have my first wordpress blog up and running and looking good.

    I would like to add a carp newsfeed to each post. I have a carp tutorial that explains how to set carp up and I have done so successfully for a regular website, but it doesn’t seem to work for my wordpress blog.

    Once it is set up on the server I upload a file titled “newsfeed.php” with my newsfeed details then draw this in with a SSI include.

    The include I am using is <!–#include virtual=”..blog/carp/newsfeed.php” –>

    I have used that include on my regular site and it draws the newsfeed file in fine, but it doesn’t seem to work for my wordpress blog.

    Perhaps it is how I am adding the include. I am doing it by adding it to the index template just below the content.

    Can anyone see a basic mistake I am making here? I have tried a number of fixes and cannot seem to make it work.

    Thanks
    Peter

Viewing 2 replies - 1 through 2 (of 2 total)
  • The “basic mistake” is that include virtual worok on a shtml file but not in a php file (with a lot of headache can be forced, but why…?)
    In .php files use “php include”
    I am not a coder, so don’t quote me, but something like this:
    <?php include('path-to-your-script'); ?>

    Thread Starter peter1

    (@peter1)

    Thanks heaps moshu, that works.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Editing template to add RSS’ is closed to new replies.