Forums

RSS feed into news secion of webpage (2 posts)

  1. Kernkraft
    Member
    Posted 5 years ago #

    Ok here is what I've done:

    I've got a webpage: http://www.example.com
    I installed wordpress into a subdirectory so now my blog appears at http://www.example.com/blog
    I open that page's source to find my RSS feed link: http://www.example.com/blog/?feed=rss2

    I want "www.example.com/blog/?feed=rss2" to feed into http://www.example.com's News section... essentially duplicate the posts as news updating itself as I continue to add blog posts in http://www.example.com/blog ...

    How do I do this?

    I've tried these steps but I'm still getting errors:
    http://www.bytescout.com/how_to_create_news_section_on_your_website.html

  2. Kernkraft
    Member
    Posted 5 years ago #

    I posted this line into the body of my index.php. It is on line 243.

    <?php include("rss2html.php?XMLFILE=http://www.example.com/blog/?feed=rss2") ?>

    This is the error message I am getting on my webpage:

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

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

    Warning: main(): Failed opening 'rss2html.php?XMLFILE=http://www.example.com/blog/?feed=rss2' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/a/t/k/example/html/index.php on line 243

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags