OscarminiOscarmini
  • Home
  • Reviews
  • Computers
  • How Tos
  • Travel & Lifestyle
  • Phone ROMs
  • Contact
    • Advertise
    • About Us
Facebook Twitter Instagram
  • Advertise With Us
  • Newsletter
Facebook Twitter Instagram
Oscarmini Oscarmini
  • Home
  • Reviews
  • Computers
  • How Tos
  • Travel & Lifestyle
  • Phone ROMs
  • Contact
    • Advertise
    • About Us
OscarminiOscarmini
Home»Web Design Tips»How to display an external RSS Feed on your blog
Web Design Tips

How to display an external RSS Feed on your blog

Oscar FrankBy Oscar Frank1 Min Read
Share
Facebook Twitter LinkedIn WhatsApp Pinterest Email

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.

Get the most important happenings in your inbox weekly

Related Posts

WordPress Blog Hosting made easy with SeekaHost Blog Hosting Control Panel

December 4, 2020

How to Create a Website with Elementor Page Builder in WordPress

April 1, 2019

Tomcat Based Java Hosting: A Beginner’s Guide

December 5, 2018
Add A Comment

Leave A Reply Cancel Reply

Latest Posts

Curacel, a Nigerian Insurtech Startup, Raises $3 Million

February 17, 2023

Google Redesigns and Upgrades Gboard Toolbar

February 16, 2023

Internet Explorer to be Permanently Disabled

February 16, 2023

iPhone 15 Pro to Feature Thinner Bezels

February 16, 2023
Get the best African tech newsletters in your inbox
Oscarmini
Facebook Twitter Instagram YouTube
© 2023 Oscarmini Co. Designed by illBytes.

Type above and press Enter to search. Press Esc to cancel.