Automatically add Twitter and Facebook buttons to your posts
Posted by The Farmer on Jan 28, 2011 in Wordpress | 1 comment
Paste the code below into your functions.php file, save it, and you’re done. function share_this($content){ if(!is_feed() && !is_home()) { $content .= '<div class="share-this"> <a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a> <script...
Read MoreDifferent number of posts for a WordPress category
Posted by The Farmer on Jan 16, 2011 in Wordpress | 0 comments
WordPress allows you to vary how many blog posts you show on your blog, but it’s a single setting, and affects how many blog posts show over the whole website. This tip allows you to have a different number of posts for a particular category.
Read MoreHow to easily get post ancestors
Posted by The Farmer on Jan 16, 2011 in Wordpress | 0 comments
When using WordPress as a CMS or building a breadcrumb, you often need to get the post ancestors. Today let’s have a look at how you can easily get post ancestors of a specific post.
Read MoreHow to count your blogroll links
Posted by The Farmer on Jan 16, 2011 in Uncategorized | 0 comments
Did you ever want to display how many blogroll links you have in total? If yes, just read this recipe. It’s pretty easy to do using the $wpdb object and some SQL. Simply paste the following code where you want the count to be...
Read More






