/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/*--------------------------------------------------*/ /** add categories before headlines */ /*--------------------------------------------------*/ function show_cat () { if (is_home()) $category = get_the_category(); echo '<p class="show_cat">' . $category[0]->cat_name . '</p>'; } /*add_action('thesis_hook_before_headline', 'show_cat');*/ add_action('thesis_hook_before_teaser_headline', 'show_cat');