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 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->items0$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 Old Post Promoter

Blog Traffic Exchange Related Posts
  • Vinter’s Golf Club, Yountville, CAVinter's Golf Club, Yountville, CA Vinter's Golf Club is Located in Yountville, CA Phone: (707) 944-1992 Website: http://www.vintersgolfclub.com Course History: This is one of the most popular courses in Napa Valley and with good reason. This is a pleasant nine hole course that is still challenging without sacrificing fun. It became an instant favorite......
  • Teach Yourself Visually Golf By Cheryl Anderson, Brian Crowell and Tom Mackin Despite the overly clunky title, this book promises to help you master complex techniques by learning in a visual manner. Since statistics show that we as humans do learn better when presented with images, this is a viable theory, but will it pay off? Let’s take a hard look at......
  • San Ramon Golf ClubSan Ramon Golf Club San Ramon Golf Club   San Ramon Golf Club is located in: San Ramon, CA Phone: 925-828-6100 Website: http://www.sanramongolfclub.com/ Course History: San Ramon Golf Club is a public course that is in easy driving distance from most large cities in the bay area. It's a beautiful course that features......
  • sanclementegcSan Clemente Golf Course, San Clemente, CA San Clemente Golf Course is located in: San Clemente, CA Phone: (949)361-8380 Website: http://www.sanclementegc.com/ Course History: This is a beautiful course that was designed by William Bell, it quickly rose to prominence in the area. Considering the quality of the course, the rates are incredibly low, thanks in part to......
  • Not Enough Golf First Too Much Golf and now not enough golf.  Since my 3 days in a row I have yet to play again.  Now that I am on vacation for a family emergency it is looking like I won't get to play again for at least another couple of weeks. There goes......
Blog Traffic Exchange Related Websites
  • Recent Posts and Recent Comments at Sidebar Many from bloggers wish insatlling the widget of Recent post and Recent post at sidebar, and for this matter is several blogger creating recent post and recent comment widget by javascript, However i think that is not good for your blog SEO (Search Engine Optimization). Besides not good to SEO,......
  • pluginBlog Plug-Ins to Get More Readers Wordpress specifically has a number of plug-ins for blogging that will allow you to attract more readers to your blog. Some of the best blog plug-ins for increasing traffic to come in three main categories: Social networking and bookmarking Posting across many different platforms RSS feed helpers BTE Related Websites:......
  • OPP OptionsOld 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......
  • plugsBest Wordpress Plug-Ins Blogging with Wordpress offers users so many choices, including a variety of plug-ins that meet different needs. Some are for fun and others are very functional and useful for a variety of purposes. No one would want all these plug-ins in their blog, though, and some are more well-suited to......
  • Add Weight Loss and Fitness Bloggers 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 weight loss health and fitness......
If you liked this article, vote for it on del.icio.us and stumbleupon.

Categories:

about, tools



0 comments ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment