WordPress.org

Ready to get started?Download WordPress

Forums

Display rss feeds on pages. Any recommendation? (17 posts)

  1. Felix J
    Member
    Posted 5 years ago #

    Hello

    I need a wordpress plugin that displays rss feeds of your own choice on a page.

    Any recommendation?

    (I tried a plugin called "NewsPage", but I didn't like it.)

    Thanks

  2. Chris_K
    Member
    Posted 5 years ago #

  3. Felix J
    Member
    Posted 5 years ago #

    Thanks for the tips. However they wasn't exacly what I was looking for.

    Anyone got any more suggestions?

    Thanks

  4. Chris_K
    Member
    Posted 5 years ago #

    It might be helpful if you either elaborated a bit on why they don't fit the need or shared some more details on what the need really is.

  5. Felix J
    Member
    Posted 5 years ago #

    I dont know how to explain it, but I hope it's understandble anyway.

    I need a plugin which you can use to add the rss news to a page or post with a simple "tag code" that you insert in your page or post.

    My idea was to have rss news of a site under the screenshot thumbnail or on a completely new page I am not sure yet...

    Here a example: of a post there I maybe want to have it, like in a new square under "RSS":

    http://xn--bokmrken-3za.net/archives/211

    The RSS square is just linking to the rss pages of the site that the post is about but I also want to show live rss news maybe in the post, in a new square directly under "RSS" or in a new page as said.

    Note: I am not looking after a plugin that will only work as a widget in the sidebar.

  6. Felix J
    Member
    Posted 5 years ago #

    I am happy for any suggestion!

    Thanks

  7. Felix J
    Member
    Posted 5 years ago #

    Will try this one: http://wordpress.org/extend/plugins/simple-feed-list/

    and see how it goes... Nope not what I hoped...

  8. Felix J
    Member
    Posted 5 years ago #

    There must be atleast one plugin that fits my need.... Anyone got a recommendation? Please...

  9. dakranii
    Member
    Posted 4 years ago #

    Felix,

    What you probably need to use is a plugin that allows you to execute PHP in posts, pages, and widgets.

    I have an RSS feed running on a page using this method.

    Download and use either the PHP-Execution or the Exec-PHP plugin. After you have that installed and activated, use the following code in your Page or Post where you want the feed to go:

    <?php
    include_once(ABSPATH.WPINC.'/rss.php'); // path to include script
    $feed = fetch_rss('http://domain.tld/your-feed/'); // specify feed url
    $items = array_slice($feed->items, 0, 7); // specify first and last item
    ?>
    
    <?php if (!empty($items)) : ?>
    <?php foreach ($items as $item) : ?>
    
    <h2><a href="<?php echo $item['link']; ?>"><?php echo $item['title']; ?></a></h2>
    <p><?php echo $item['description']; ?></p>
    
    <?php endforeach; ?>
    <?php endif; ?>

    You can get more info on that code here: http://perishablepress.com/press/2009/04/26/import-and-display-rss-feeds-in-wordpress/

  10. schikowski
    Member
    Posted 4 years ago #

    That Perishable Press article has been really helpful, dakranii.

  11. egoldin
    Member
    Posted 4 years ago #

    This was perfect. Thanks!

  12. MikesSite
    Member
    Posted 4 years ago #

    Thanks for this

  13. droiddog
    Member
    Posted 4 years ago #

    Thanks dakranii, this is exactly what I needed. Can anyone tell me how to add bullets to the list (with example)? I've stripped the above example down to just the linked titles:

    <?php
    include_once(ABSPATH.WPINC.'/rss.php'); // path to include script
    $feed = fetch_rss('http://www.droiddog.com/forums/external.php?type=RSS2'); // specify feed url
    $items = array_slice($feed->items, 0, 5); // specify first and last item
    ?>
    
    <?php if (!empty($items)) : ?>
    <?php foreach ($items as $item) : ?>
    
    <a href="<?php echo $item['link']; ?>"><p><?php echo $item['title']; ?></a></p>
    
    <?php endforeach; ?>
    <?php endif; ?>

    Thanks

  14. eplmatches
    Member
    Posted 4 years ago #

    @droiddog

    you meant like this?

    <?php
    include_once(ABSPATH.WPINC.'/rss.php'); // path to include script
    $feed = fetch_rss('http://feeds.feedburner.com/EplmatchescomChelsea'); // specify feed url
    $items = array_slice($feed->items, 0, 10); // specify first and last item
    ?>
    
    <?php if (!empty($items)) : ?>
    <?php foreach ($items as $item) : ?>
    
    <ul>
    <li>
    <h2><a href="<?php echo $item['link']; ?>"><?php echo $item['title']; ?></a></h2>
    </li>
    </ul>
    
    <?php endforeach; ?>
    <?php endif; ?>
  15. mandalareopens
    Member
    Posted 4 years ago #

    @droiddog - Here's how I would do it:

    <?php
    include_once(ABSPATH.WPINC.'/rss.php'); // path to include script
    $feed = fetch_rss('http://www.droiddog.com/forums/external.php?type=RSS2'); // specify feed url
    $items = array_slice($feed->items, 0, 5); // specify first and last item
    ?>
    
    <?php if (!empty($items)) : ?>
    <ul>
    <?php foreach ($items as $item) : ?>
    
    <li><a href="<?php echo $item['link']; ?>"><p><?php echo $item['title']; ?></a></p></li>
    
    <?php endforeach; ?>
    </ul>
    <?php endif; ?>
  16. Vernessa Taylor
    Member
    Posted 4 years ago #

    I also came across a plugin that will display RSS feeds on your pages, posts, or sidebar. Additionally, you can use php or shortcodes, and it has other configuration and customization options.

    Its in the WordPress Plugin Directory: RSSImport.
    Here's page: http://wordpress.org/extend/plugins/rss-import/
    Here's author's page (in German): http://bueltge.de/wordpress-plugins/

    I gave it a whirl as soon as I installed it and it just worked. Thankfully!

  17. drtanz
    Member
    Posted 4 years ago #

    is there any way rssimport can also display the images in the feed? I am desperately looking for such functionality

Topic Closed

This topic has been closed to new replies.

About this Topic