skip to Main Content

Move Custom Taxonomy Term Description

By default the term description displays as the "subheading" below the main title. You can use this function if you with to move the term description for any taxonomy to be above the posts. This is useful if you have very long descriptions or you are using custom HTML in this area.

add_filter( 'wpex_has_term_description_above_loop', function( $bool ) {
	if ( is_tax( 'your_taxonomy_name' ) ) {
		return true;
	return $bool;
} );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend Code Snippets)
Back To Top