Trying to add RSS feed to webpage

  • Unknown's avatar

    Hi, I managed to install wordpress correctly to my database and I wanted to feed all my blog posts into the body of my index.html webpage… I’m following these directions:

    http://www.bytescout.com/how_to_create_news_section_on_your_website.html

    When I load my webpage I get my template but in the body where the news feed goes I have the following string of errors:

    Warning: main(rss2html.php?XMLFILE=http://kernkraft.wordpress.com/?feed=rss2): failed to open stream: No such file or directory in /home/content/a/t/k/atkovacs/html/index.php on line 245

    Warning: main(rss2html.php?XMLFILE=http://kernkraft.wordpress.com/?feed=rss2): failed to open stream: No such file or directory in /home/content/a/t/k/atkovacs/html/index.php on line 245

    Warning: main(): Failed opening ‘rss2html.php?XMLFILE=http://kernkraft.wordpress.com/?feed=rss2′ for inclusion (include_path=’.:/usr/local/lib/php’) in /home/content/a/t/k/atkovacs/html/index.php on line 245

    I’m trying to figure out what’s going on but it’s been a full day of headaches… any help or discussion would be greatly appreciated.

    Oh, and when I follow this step from the first link I posted:

    Upload modified sample-template.php and rss2html.php script to the main folder of your web-site.

    Now we need to modify main page of your web-site. If you have .html or .htm file then just simply change its extension to .php
    On most hosting services index.php will work without problems.

    Open index.php and insert this code snippet to the place where you want to display news:

    <?php include(“rss2html.php?XMLFILE=http://www.MySiteName.com/blog/?feed=rss2”) ?>

    Link highlighted with green color is the link to the RSS feed of your news blog. Usually this links is

    http://www.MySiteName.com/blog/?feed=rss2

    if you have installed blog into /blog/ sub-folder

    Now save index.php and upload it.

    … I entered in the following line into my index.php file where the body is supposed to be: <?php include(“rss2html.php?XMLFILE=http://kernkraft.wordpress.com/?feed=rss2”) ?>

  • Unknown's avatar

    You need to be asking at WordPress.org, I would assume. This help forum is only for blogs hosted at WordPress.com; we don’t install things like this to our blog software, as we’re on a shared blogging platform.

  • The topic ‘Trying to add RSS feed to webpage’ is closed to new replies.