Display RSS Feed on my site

4 replies
I am looking for a free version of something that will allow me to paste a code in my membership area to display the last 5 blog posts. Does anyone know how to do this or a site?
#display #feed #rss #site
  • Profile picture of the author Louise Green
    If your site is a standard html site, you'll need an RSS parser, but if you use a CMS or blogging platform, there should be a plugin or modification that you can install that will allow you to do this.

    Wordpress has a wide range of free plugins that enable this and Joomla does too.
    Signature
    IMPORTANT MESSAGE: I'm currently on vacation & will answer all messages when I return - Happy Holidays!!
    {{ DiscussionBoard.errors[1655599].message }}
    • Profile picture of the author Sarah Harris
      For wordpress I use this code just put it in your template where you want the feeds to show.

      <h2><?php _e('Newest Posts'); ?></h2>
      <?php // Get RSS Feed(s)
      include_once(ABSPATH . WPINC . '/feed.php');
      $rss = fetch_feed('http://feedurl/');
      $maxitems = $rss->get_item_quantity(5);
      $rss_items = $rss->get_items(0, $maxitems);
      ?>

      <ul>
      <?php if ($maxitems == 0) echo '<li>No items.</li>';
      else
      // Loop through each feed item and display each item as a hyperlink.
      foreach ( $rss_items as $item ) : ?>
      <li>
      <a href='<?php echo $item->get_permalink(); ?>'
      title='<?php echo 'Posted '.$item->get_date('j F Y | g:i a'); ?>'>
      <?php echo $item->get_title(); ?></a>
      </li>
      <li class="excerpt"><?php echo $item['description']; ?></li>
      <li class="story">&raquo; <a href="<?php echo $item['link']; ?>">Complete Story</a></li></ul> <?php endforeach; ?>
      </ul>
      Signature

      I love what I do and make money every day. It is as easy as 123. If you are interested in finally making money online, and you want to work with an amazing mastermind group that will be with you every step of the way showing you how let me know...

      Advertising your business doesn't have to take you all day... http://myadposted.com simple amazing customer support and personalized service.

      {{ DiscussionBoard.errors[1655612].message }}
  • Profile picture of the author MayaLocke
    The easiest/best way to do this is to use RSS2HTML a free PHP script. This means that you can retain the complete control of the HTML layout (using templates) and make it match your existing design. Additionally using PHP rather than JavaScript will mean that search engine spiders can "spider" the contents of the RSS feeds.

    Additional details and a free rss2html download is available at: RSS2HTML free PHP script for displaying RSS feeds

    Additional information and other options for displaying RSS feeds can be found at: Displaying RSS Feeds

    Goodluck!
    {{ DiscussionBoard.errors[1657037].message }}

Trending Topics