{"id":311,"date":"2012-01-05T19:05:32","date_gmt":"2012-01-05T10:05:32","guid":{"rendered":"http:\/\/www.santoshkori.com\/blog\/?p=311"},"modified":"2012-08-23T17:30:50","modified_gmt":"2012-08-23T08:30:50","slug":"how-to-display-any-external-rss-feed-on-wordpress-web-site","status":"publish","type":"post","link":"https:\/\/www.santoshkori.com\/blog\/how-to-display-any-external-rss-feed-on-wordpress-web-site\/","title":{"rendered":"How to Display any External RSS Feed on WordPress web Site"},"content":{"rendered":"<p>Have you seen other bloggers who display their other blog\u2019s feed on their site. You want to do it too for extra promotion and traffic. Well here is the tutorial for you. Simply paste the following code in anywhere in your theme:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\r\n&lt;?php include_once(ABSPATH.WPINC.'\/feed.php');\r\n$rss = fetch_feed('http:\/\/feeds.feedburner.com\/wpbeginner');\r\n$maxitems = $rss-&gt;get_item_quantity(5);\r\n$rss_items = $rss-&gt;get_items(0, $maxitems);\r\n?&gt;\r\n&lt;ul&gt;\r\n&lt;?php if ($maxitems == 0) echo '&lt;li&gt;No items.&lt;\/li&gt;';\r\nelse\r\n\/\/ Loop through each feed item and display each item as a hyperlink.\r\nforeach ( $rss_items as $item ) : ?&gt;\r\n&lt;li&gt;\r\n&lt;a href='&lt;?php echo $item-&gt;get_permalink(); ?&gt;'\r\ntitle='&lt;?php echo 'Posted '.$item-&gt;get_date('j F Y | g:i a'); ?&gt;'&gt;\r\n&lt;?php echo $item-&gt;get_title(); ?&gt;&lt;\/a&gt;\r\n&lt;\/li&gt;\r\n&lt;?php endforeach; ?&gt;\r\n&lt;\/ul&gt;\r\n\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Have you seen other bloggers who display their other blog\u2019s feed on their site. You want to do it too for extra promotion and traffic. Well here is the tutorial for you. Simply paste the following code in anywhere in your theme: &lt;?php include_once(ABSPATH.WPINC.&#8217;\/feed.php&#8217;); $rss = fetch_feed(&#8216;http:\/\/feeds.feedburner.com\/wpbeginner&#8217;); $maxitems = $rss-&gt;get_item_quantity(5); $rss_items = $rss-&gt;get_items(0, $maxitems); ?&gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,5],"tags":[160,159,158,157,156,725],"class_list":["post-311","post","type-post","status-publish","format-standard","hentry","category-tips-n-tricks","category-wordpress","tag-external-rss-feed-on-html-page","tag-external-rss-feed-on-wordpress","tag-external-rss-feed-on-wordpress-web-site","tag-how-to-display-any-external-rss-feed","tag-how-to-display-any-external-rss-feed-on-wordpress-web-site","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/comments?post=311"}],"version-history":[{"count":4,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/311\/revisions"}],"predecessor-version":[{"id":699,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/311\/revisions\/699"}],"wp:attachment":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/media?parent=311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/categories?post=311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/tags?post=311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}