Hi all!
First time here. I'd to ask how do I go about it? I copied the page template from the parent theme and renamed to home.php and set it as the template for the home page. Then I added a hook to thematic_above_indexloop() in functions.php but it doesn't seem to work. Here's my action hook:
function show_single_post(){
$i=0; // Initialize to Zero;
if (have_posts()) :
while (have_posts()) : the_post();
if ($i==0) {$recentpostid = $post->ID; $i=$i+1;}
endwhile;
endif;
//get only the latest post
$posts = query_posts( 'p='.$recentpostid."'");
}
add_action('thematic_above_indexloop', 'show_single_post');
However, if I embed that code snippet into the home.php directly, it works. There must something wrong with my action hook? I am relatively new to using hooks pls enlighten me.