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 -
Week Roundup Week of June 08 This week from the Fitness Health Network I present to you more of my favorite posts: Taking soda out of your diet? NCN chronicles the journey this week with a wrap up in 6 Days Without Soda And Life Is Good. It's Not Your Fault You Regained The Weight Fat...... -
Weight Lost: 48 pounds in 8 weeks... 1.8 Pounds This Week So I am very pleased with my weight loss this week... With my ruptured tendon I was unable to exercise much, but I still managed 1.8 pounds of weight loss... In addition to my ankle, I was finding myself stress eating (the injury and the prospect of surgery was stressing me out),...... -
Review: Eat this, Not that! Thousands of Simple Food Swaps that Can Save You 10, 20, 30 lbs or More! by David Zinczenko and Matt Goulding Title - Eat this, Not that! Thousands of Simple Food Swaps that Can Save You 10, 20, 30 lbs or More! Author - David Zinczenko and Matt Goulding Format - Paperback, 304 pages ISBN - 1594868549 and 978-1594868542 Publisher - Rodale Books Release Date - December 10, 2007 Can you...... -
Sibling Day Weekend Roundup While this is not Mother's Day or Father's day, I called this week's roundup post Sibling Day's Roundup because of the accomplishments that my younger sisters have achieved. One is getting ready to be in an all state juried art show, another is ramping up to audition for all county...... -
Useful Web Apps for Weight Loss Everyone seems to be getting into weight loss, healthy eating and exercise habits these days, and with that, there has been a surge in the availability of web applications designed to aid in diet and exercise, weight loss, goal setting and other life improvements. Some of these web applications and......
Related Websites -
The Twitter Diet By Mary Kearl (AOL Health) Twitter, which you many of you may already use to track the whereabouts and happenings of friends, loved ones, world leaders and celebrities, is also being used to track weight loss and calorie intake, as well as to swap diet tips, recipes, workout routines and...... -
SEO Tips for Bloggers on WordPress There are several million WordPress blogs that you can find on the internet, but unfortunately the majority of them are not properly optimized for search engines. This article is going to touch on some SEO tips for bloggers using WordPress to host their blog, because with the right tips it...... -
guest post: learning to truly love what you have Happy Monday! This is a first for brip blap - a guest post! The inaugural guest post comes from paidtwice of Iâve Paid For This Twice Alreadyâ¦, a 30-something married mom of two with a PhD in Genetics ...and she's a 3rd degree blackbelt in taekwondo. She and her husband...... -
Top 22 Weight Loss, Health, and Fitness Blogs of 2007 When I first began writing about my weight loss journey this past May, I wasn't expecting to have compiled such an enormous list of blogs that I actually read on a daily basis. That being said, I have decided to make the last post of the year a tribute...... -
Alternate Recent Posts Widget I've been fooling around with WordPress a lot lately, trying to get GeekLad.com configured just how I like it. Most recently I added a Recent Posts widget. The default Recent Posts widget displays links to all of your most recent posts. If you are already displaying your most recent posts......
- Exercise Fitness Programs Weight Management
- Discount Low Carb Products Cheap Weight Loss Journal Low Carb Store
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