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
The following 5 factors detail the key techniques to influence and improve your ranking on Google.
It is important to draw people’s attention to your website or Blog. It isn’t easy to build a reputation online...
Futuristic Cars Make Parking a Piece of Cake
Cars are one of those things that so many of us have that have been changing drastically in recent years....
Roles may change: Google and Facebook may hit financial services
World needs great financial players, so Google and Facebook say ‘we are there at your service’, just check ‘what’s on...
Google Security at Stake- Android Apps
Android surely is doing great in the app market but still perfectionism hasn’t been noticed. But the new step observed...
powered by WassUp
Recent Posts: Fully Net Worth . com
Danny Towers is an upcoming rapper who is best known for his songs “‘Motel Hell”, “Geekin”, and “Trauma”. He is currently on tour with Ski Mask The Slump God and was a good friend to late XXXTentacion. As of 2019, Danny Towers net worth is estimated to be $300,000. Danny was born on April 17, […]
Michael Strahan Net Worth Who does not like that rigorous American Football game that makes your adrenaline take a toll even though you would be just sitting on a chair amongst the spectators?! Everyone does. The mere sight of the game is enough for people to make them sit on the edge of their seats […]
Paul Nassif net worth Dr. Paul Nassif is a famous plastic surgeon, and he is an expert in the field of rhinoplasty. Dr. Nassif is a Lebanese-American who has jokingly commented on his big nose. He has said that he understands when many people wish to change their features. He began his career with Dr. […]