You might have a  second blog and wish to display an excerpt or list of it’s content on your current blog in order to get traffic from your 1st blog to that one, here is the guide you need.

This will guide you through how to display the rss feed of another site on your current wordpress blog

displaying an external rss feed on wordpress

Step by Step guide to display external rss on current wordpress blog

1. Edit the section of your current theme where you wish to add the rss feed.

2. Now copy and paste the code below


<?php include_once(ABSPATH.WPINC.'/feed.php');
$rss = fetch_feed('<a href="http://feeds.feedburner.com/oscarmini">http://feeds.feedburner.com/oscarmini</a>');
$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>
<?php endforeach; ?>
</ul>

3. Then save the theme file and view your blog.

Note: replace http://feeds.feedburner.com/oscarmini with your feed URL.

LEAVE A REPLY

Please enter your comment!
Please enter your name here