Thursday, July 19, 2012

Add Custom Info to Featured Post


Add Custom Info to Featured Post

On the front page of the blog, there is one featured post followed by 14 teasers. I was able to add content to the bottom (such as the ShareThis button and Tweet This) of the featured post only, and this is how i did it:
function featuredpost_content() {
 if (is_home())
 {
 ?>
  <p>Add whatever here</p>
<?php }
}
 add_action('thesis_hook_after_post', 'featuredpost_content');
This may or not be useful if you don’t use featured posts on your Thesis blog.

No comments:

Post a Comment