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 I added the following to my theme…
<h3>Latest Golf Posts</h3>
<?php // Get RSS Feed(s)
include_once(ABSPATH . WPINC . ‘/rss.php’);
$rss = fetch_rss(‘http://www.bloggersgolf.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-11-18 02:05:33. Republished by Blog Post Promoter
Related Posts -
Black Lake Golf Course, Nipomo, CA Phone Number: (805) 343-1214 Website: http://www.blacklake.com/ Course History: This course is actually three nine hole courses in one, so you'll have the rate opportunity of being able to change up your game. This is one of the few 27 hole courses in the area and it's well worth the drive....... -
Hiddenbrooke Golf Course Hiddenbrooke Golf Course is located in: Vallejo, CA Phone: (707) 558-1140 Website: http://www.hiddenbrookegolf.com/ Course History: The legendary golfing great Arnold Palmer designed this course and it offers a wonderful challenge for all players. From the dramatic changes in elevation to the tricky greens, you'll have loads of fun at this......
-
River Park Golf Center, Fresno, CA River Park Golf Center is located near Fresno, CA Phone: 559-448-9467 Website: http://www.riverparkgolf.com Course History: This is a course that has won many accolades throughout the year. Most recently they were named one of Golf Digest's Top 100 Courses in America and Ping has designated them as the West Coast...... -
Boulder Creek Golf Course, Boulder Creek, CA Boulder Creek Golf Course is located in Boulder Creek, CA Phone: (831) 338-2121 Website: http://www.bouldercreekgolf.com/golf/proto/bouldercreekgolf/ Course History: This incredibly beautiful course is located in a very remote area (we've included directions below) but it is well worth the trip. The course is challenging enough for a pro while not...... -
Prune Ridge Golf Club PruneRidge Golf Club is located in: Santa Clara, CA Phone: 408-248-4424 Website: http://www.pruneridgegolfclub.com Course History: Although this is a nine-hole course, it has quite a bit to offer and is a local favorite. They have added a visual golf stop motion training system that is quite useful, particularly for those......
Related Websites -
Link Strategies for Small Business to Get Incoming Traffic to Your Website Link strategies can be tough to understand if you aren't an online marketer. One of my clients emailed me today; excited about her new blog and using some of the strategies for building incoming links that I gave her. However, she didn't know how to tell if she was getting any...... -
Choose anything fr Anthro, tell us why you want it & you might bring it home! Contest closes this Sunday! Hurry pick something for yourself! Share a link of anything you want from http://www.anthropology.com.sg and give us a simple reason as to why you want it. You just might win what you want!! You can send in more than 1 entry so there's no limit on...... -
Old Post Promoter "You down with OPP, yeah you know me!" The OPP, or Old Post Promoter, is a plugin designed for Wordpress by the Blog Traffic Exchange. The primary function of the plugin is its capability to promote older blog posts by reviving them and returning them to the front page and...... -
Blueprint For How To Make Money With A Blog: Creating Content, Optimizing SEO And Promoting Your Site Last time in the "Blueprint For How To Make Money With A Blog" series we talked about the basics of setting up your WordPress blog. We looked at picking a niche for your site, choosing a name and domain name, and buying a hosting package. We also looked at some...... -
Simple Rotating Headers Using CSS Sprites and CSS Image Replacement While I was creating my 2nd WordPress theme (still in the works...) I thought of using rotating image headers. I first saw this idea from Chris Pearson of www.pearsonified.com in his 'Simple Random Header Images for Your Blog' post. In his post, he showed his technique on how to do......
- Seed, Feed Companies Agriculture Advertising Collectibles
- Lamp Posts Outdoor Lighting Yard, Garden Outdoor Living
- Discount Golf Pro Shop
Categories:
0 comments ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment