Apparently this has ability has been built into wordpress for quite some time but a friend of mine recently pointed up that it can be done (pfblogs popular posts added to sidebar.) Here is the wordpress codex for this feature: http://codex.wordpress.org/Function_Reference/fetch_rss.
To add the latest weight loss health and fitness posts to my sidebar I added the following to my theme…
<h3>Latest Weight Loss and Fitness Posts</h3>
<?php // Get RSS Feed(s)
include_once(ABSPATH . WPINC . ‘/rss.php’);
$rss = fetch_rss(‘http://www.fitbloggers.com/feed’);
$maxitems = 10;
$items = array_slice($rss->items, 0, $maxitems);
?>
<ul>
<?php if (empty($items)) echo ‘<li>No items</li>’;
else
foreach ( $items as $item ) : ?>
<li><a href=’<?php echo $item[‘link’]; ?>‘
title=’<?php echo $item[‘title’]; ?>‘>
<?php echo $item[‘title’]; ?>
</a> (<?php echo $item[‘dc’][‘creator’]; ?>)</li>
<?php endforeach; ?>
</ul>
Originally posted 2008-05-11 13:10:17. Republished by Blog Post Promoter
Related Posts -
Wickedly Spooky Halloween Roundup Happy Sunday to all my readers! Today's all about the roundup. As usual we have the Fitness Health Network of which I am a part of so go ahead and browse through the posts. You'll find they have a lot of great things to say. A little further down are...... -
Cash Prizes Weekend Roundup... see end of post for more details. This week from Fitness Health Network: Below are a couple of great posts from my fitness blogger friends - check them out! To Stretch, Or Not To Stretch-Who Knows? Get Fit Slowly examines the research. Journal of Healthy Living writes about Myths About Coffee: America's #1 Drink. NCN tries out...... -
Carnival of Weight Loss #2 -- Halloween Edition Welcome to the November 1, 2008 edition of carnival of weight loss. The Day after Halloween edition. diet NickIrons presents Top 5 weight loss myths posted at Get Results! Fitness Blog, saying, "These days you can’t go anywhere without hearing about a new weight loss breakthrough. A pill, a...... -
Roundup- July 27th Edition Good morning and happy Sunday everyone. If you're planning to have fun in the sun make sure you hydrate, slather on the sunscreen, and stay safe. Monday I was featured @ Digerati Life in The Cost of Being Overweight. Yesterday I was unleashed at FMU (picture was taken the same...... -
Wii Fit: Healthy Weight Loss? Have you ever wondered if those video game exercise programs work? Can you achieve healthy weight loss playing a video game? The Wii Fit is the most popular of the weight loss programs that are on the market today. It has sold many thousands of units, but some wonder if......
Related Websites -
Revolutionary New Antiques Site Aggregates the World's Stock of Antique Silver, Bringing Buyers and Sellers Together There is a new player in the international silver trade. My Family Silver is a revolutionary new website that offers a unique way to buy and sell antique silver. For the first time, myfamilysilver.com enables dealers and auctioneers worldwide to list silver for sale on one exclusive and fully independent...... -
Getting to Know Money around the World If you collect money, it is likely that you will have a particular kind of money that you are looking to collect. While many are happy to collect just what it is that they are able to find form their country, there are others who will need to be able...... -
Add Latest Golf Posts To Your Website Apparently this has ability has been built into wordpress for quite some time but a friend of mine recently pointed up that it can be done (pfblogs popular posts added to sidebar.) Here is the wordpress codex for this feature: http://codex.wordpress.org/Function_Reference/fetch_rss. To add the latest golf posts to my sidebar...... -
Restoring Built-Ins If your home is from the arts and crafts era, or if you have built-ins that are looking a little worn, restoring them is not as difficult as you may think. Built-ins are incredibly useful but they are often overlooked by many home owners. Here are some great tips to...... -
Take Precautions When Buying Rare Coins and Currency Online There are many different things that you will need to pay attention to whenever you are looking to buy the kinds of things that you want to have in your collection. Among the different things that you might want to have are rare coins and currency. You might be willing......
- Atkins Diet Weight Management
- Cs 345 Cs346 Echo Chainsaws Outdoor Power Equipment Yard, Garden & Outdoor Living Nursery
- Diaries & Calculators Weight Management
- Echo Leaf Blowers & Vacuums Outdoor Power Equipment Yard, Garden & Outdoor Living
- Seed, Feed Companies Agriculture Advertising Collectibles
Categories:

0 comments ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment