Posted By

kristarella on 03/22/09


Tagged

wordpress thesiswp


Versions (?)

Who likes this?

7 people have marked this snippet as a favorite

girliegeek
mlangfeld
fabi
goddess
joelhaus
manavecplan
naeemnur


Custom bylines in Thesis


 / Published in: PHP
 

This example adds tags and categories to the Thesis byline, each on a new line, and with the needed classes to match the other byline items.

The byline is generated in thesis/lib/functions/content_functions.php (v1.4.2 at the time of writing) look there for code on different byline items.

  1. function add_to_byline() { ?>
  2. </p><p class="headline_meta"><?php the_tags('tagged as <span>', ', ', '</span>'); ?></p>
  3. <p class="headline_meta"><?php echo __('in', 'thesis') . ' <span>' . get_the_category_list(',') . '</span>'; ?>
  4. <?php }
  5. add_action('thesis_hook_byline_item', 'add_to_byline', '99');

Report this snippet  

You need to login to post a comment.