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->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>
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 any touch I had developed lately. I am going to fill in posts in the coming days with golf course review posts. I have played a large number of courses and some fairly regularly. I am also going to write a post about a 2 man gambling golf game that I have been playing a bit lately.
The best thing about taking a little break from golf is that you forget your bad habits. The problem is you also forget any good habits. (I don’t have many good habits so I am ok).
Welcome to My Golf Blog
This a blog about golf. The great maddening game of golf. I will cover golf course reviews, golf club reviews, golf gambling, and golf news.
I try to play as often as I can. I love to play. I wish I played better.
Comments and links encouraged.
