Custom bylines in Thesis


/ Published in: PHP
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.