WordPress.org

Forums

[resolved] Import and Display RSS Feeds on Front Page (3 posts)

  1. imdkiessling@yahoo.com
    Member
    Posted 3 years ago #

    I'm trying to figure out a simple way to import and display RSS feeds on the front page content loop of my word press site -not in the sidebar.

    See:
    http://davidkiessling.com/blueberry/

    I have been able to get a feed to appear using FeedWordPress plugin but I don't want to display each article as a separate post

    The goal is to post local content and backfill it with content from the RSS feeds very much like most online newspapers and magazines.

    I want to display articles titles from three different feeds as shown below:

    RSS Feed Title 1 i.e. Top Stories
    Article title 1
    Article title 2
    Article title 3

    RSS Feed Title 2 i.e. Florida news
    Article title 1
    Article title 2
    Article title 3

    RSS Feed Title 3 i.e. Crops and Markets
    Article title 1
    Article title 2
    Article title 3

    I really thought this would take me about 5 minutes but I have spent all day on this. I think I may be missing something very simple. There are a lot of plugins, tutorials, videos, forum posts on this topic but many seem to be five or six years old - many with conflicting information.

    Any ideas or resources would be welcome.

  2. imdkiessling@yahoo.com
    Member
    Posted 3 years ago #

    I figured it out.

    On this Twenty Eleven: Main Index Template (index.php)

    After...
    <?php get_template_part( 'content', get_post_format() ); ?>

    Add this code...

    <header class="entry-header">
    <h1 class="entry-title">Top Stories</h1>
    <?php include_once(ABSPATH.WPINC.'/rss.php');
    wp_rss('http://www.thepacker.com/fruit-vegetable-news/index.rss', 3); ?>

    Remember to change the URL in the second line unless you want fruit and vegetable news. The '3' means display three most recent posts...adjust as required.

  3. stvwlf
    Member
    Posted 3 years ago #

    How about this
    http://www.wpbeginner.com/wp-tutorials/how-to-embed-an-external-rss-feed-in-wordpress-posts-via-shortcode/
    You would enter the shortcode in the post once for each feed, that is 3 times

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags