Add Category to Byline
You can build onto MD’s default byline by hooking in your own content. Use this function to add the current posts category.
How to Add Category and Links to the Post Byline
Add to your child theme's functions.php
file
function md_child_theme_add_byline() { ?>
<span class="byline-author byline-item">
<em>in</em> <?php the_category( ' ' ); ?> (<a href="#">link here</a>)
</span>
<?php }
add_action( 'md_hook_byline_bottom', 'md_child_theme_add_byline' );
You can build onto MD’s default byline by hooking in your own content. Use this function to add the current posts category.
There's always something new in the works here in the MD Labs. Join the email list to get the newest updates, snippets, and videos sent straight to your e-mail inbox.*