Display any External RSS Feed in Word-press Site

// To Connect Your RSS to Your Web page Just Paste This Code to Your Respective Place and Change Feed Burner Page Name in Red Color. 

<!–?php include_once(ABSPATH.WPINC.’/feed.php’); $rss = fetch_feed(‘http://feeds.feedburner.com/vinayakwebsite‘); $maxitems = $rss-&gt;get_item_quantity(5);&lt;br ?–> $rss_items = $rss-&gt;get_items(0, $maxitems);
?&gt;
<ul>
<ul><!–?php if ($maxitems == 0) echo ‘ &lt;li&gt;No items.&lt;/li&gt; &lt;p&gt;’;&lt;br ?–> else</ul>
</ul>
&nbsp;
<ul>
<ul>// Loop through each feed item and display each item as a hyperlink.</ul>
</ul>
&nbsp;
<ul>
<ul>foreach ( $rss_items as $item ) : ?&gt;
<li>get_permalink(); ?&gt;’
title='<!–?php echo ‘Posted ‘.$item-&gt;get_date(‘j F Y | g:i a’); ?–>’&gt;
<!–?php echo $item-&gt;get_title(); ?–></li>
</ul>
</ul>
&nbsp;

One thought on “Display any External RSS Feed in Word-press Site

  • February 8, 2016 at 10:31 am
    Permalink

    Hi, Vinayaksolution Its Very Useful Website for Us. Keep Post

Comments are closed.