Here is a simple way to display any RSS feed in your WordPress blog.
<?php include_once(ABSPATH . WPINC . '/rss.php'); $rss = fetch_rss('http://feeds2.feedburner.com/WPCult'); $items = array_slice($rss->items, 0, 4); if (empty($items)) echo '<li>No items</li>'; else foreach ( $items as $item ) : ?> <a style="font-size: 14px;" href='<?php echo $item['link']; ?>' title='<?php echo $item['title']; ?>'><?php echo $item['title']; ?></a><br /> <p style="font-size: 10px; color: #aaa;"><?php echo date('F, j Y',strtotime($item['pubdate'])); ?></p> <p><?php echo substr($item['summary'],0,strpos($item['summary'], "This is a post from")); ?></p> <?php endforeach; ?>
The first step is to include the WordPress file
rss.php then will apply code after to style the feeds.
Of coarse I forgot to mention, change the RSS feed to the feed you want to pull.
Random Search Terms
Possible photo tagging plugin update
Have you tried to download any of the community tagging plugins with no prevail?
CONTENT MARKETING CHECKLIST – THE ESSENTIALS
Checklist for content marketing essentials
Think outside the box
Start to think outside the box. UnBox is a new WordPress theme for the willing. Using jQuery in fluidity.
How to: cut your server CPU load
Cut your server CPU load for WordPress installs
powered by WassUp
Recent Posts: Fully Net Worth . com
An American football player, Albert Haynesworth is known for his defensive tackle position. As of 2019, Albert Haynesworth net worth is estimated to be around $41 million. The 38 years old (June 17, 1981), Albert Haynesworth stepped in sports arena from his high school. In his high school, he took part in football, track and […]
Sandy Mahl is an American businesswoman. She is known to many as the ex-wife of country music star Garth Brooks. As of 2019, Sandy Mahl net worth is estimated to be $125 million. Sandy was born on January 16, 1965, in Tulsa, Oklahoma to parents John Mahl and Pat Mahl. Sandy is now a wildlife […]
Scott Fischer, depending on which one you are searching for. Instead, it is the famous hiker that died in 1996, or Scott Fischer, CEO of Dippin Dots, LLC, and Dippin Dots Cryogenics. In this article we will be talking about the Dippin Dots CEO, Scott Fischer, who went on the hit show Undercover Boss we’re […]