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=""></a>');
$maxitems = $rss->get_item_quantity(5);
$rss_items = $rss->get_items(0, $maxitems);
<?php if ($maxitems == 0) echo '<li>No items.</li>';
// Loop through each feed item and display each item as a hyperlink.
foreach ( $rss_items as $item ) : ?>
<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>
<?php endforeach; ?>

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

Note: replace with your feed URL.


Please enter your comment!
Please enter your name here