Skip to content

Instantly share code, notes, and snippets.

@eri-trabiccolo
Last active January 22, 2016 10:53
Show Gist options
  • Save eri-trabiccolo/0b1823520d6aa0346cb5 to your computer and use it in GitHub Desktop.
Save eri-trabiccolo/0b1823520d6aa0346cb5 to your computer and use it in GitHub Desktop.
Display term description below the post navigation
$term_description_filters = array(
'cat',
'tag',
'tax'
);
//do not automatically show term descriptions below the title
foreach ( $term_description_filters as $filter )
add_filter( "tc_show_{$filter}_description", "__return_false");
//show term description after the posts navigation
add_action( '__after_loop', 'show_term_description', 90 );
function show_term_description() {
$description = term_description();
if ( $description )
printf('<div class="row-fluid term-description-container"><section class="term-description"><div class="archive-meta">%1$s</div></section></div>',
$description
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment