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 Old Post Promoter
Related Posts -
Weight Loss Photos Well I decided it was time to start a photo page to document pictorially my progress. So without further ado I present... Before and After Weight Loss Pictures Future updates will be added to the linked page with the full size photos being added. A blog post with thumbnail(s) will announce any...... - Resurrecting Weight Loss Blog Well... after making it through vacation last summer still on track I preceded to mail it in... I fell off the weight loss wagon. I am now starting weightloss attempt #778. What went wrong? Commitment? Desire? Not really sure, but it is time to try again. I expect to reset......
-
Weight Lost: 47 pounds in 7 weeks... Under 1 Pound Weight Loss This Week After 7 weeks on the medically assisted weightless program JumpStart medicine with Dr. Sean Bourke, I have lost 47 pounds in 52 days. This week I lost 0.6 pounds and achieved only 11.1% of my weekly goal. I highly recommed Jumpstart. I have a special offer for anyone in wanting...... - Post 4th of July Roundup How was everybody's 4th of July? Did you enjoy your fireworks, BBQs, and family time? Better still did you all keep on your diets and stay focused on your health goals during the celebration? Check out my Guest Post at MizFit: Food Glorious Food From the Fitness Health Network this......
- #1 Weight Loss Tip - The Journal A nationwide study of over 1500 people, who were overweight and obese, consisted of a half year of 30 minutes of exercise a day, a low-fat diet that had plenty of fruits and veggies. It was also recommended that they write in a journal how much they ate and how......
Related Websites - Quick Weight Loss Tips | Fast Weight Loss Diets The Hidden Truth ... But here's the hidden truth that will turn your understanding of diets on its head and practically guarantee that you'll reach whatever weight goal you desire: Being "on a diet " really means having a plan for your eating instead of ......
- Listening to Your Body, Resting the Warrior Mentality Your body talks to you. Didn't you know that? Not like the kid in Look Who's Talking or the dog in Look Who's Talking, Too (starring a slimmer, younger John Travolta), but it gives you signs that you need to learn to respect. Letting the Warrior Mentality Rest Sometimes you......
- 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......
-
Pf Bloggers Weight Loss Challenge - My Part Baker of Man vs. Debt recently turned some e-mails and twitter convesations into a PF Blogger Weight Loss Challenge. The challenge will last 2 months--from June 1 to July 31, 61 days. I will be participating and have been placed on the Gamma team along with Baker - Man vs.... - How Different Diet Pills Work In Weight Loss at Natural Remedies ... With so much interest, some companies have put out products that make false claims or may even be dangerous- so only pick a diet pill that is approved by your own physician. About the Author: Learn more on best weight loss pills and ......
Time the change your life? No longer content to live a sedentary lifestyle and revel in couch potatoism? Click here to download the 31 page the 100% FREE eBook "How to Lose Weight and Maintain a Healthy Lifestyle."
Categories:



































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