Display custom taxonomies below the post
Add this code to your child theme’s functions.php
file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s functions.php
file, as this will be wiped entirely when you update the theme.
Replace the 'taxonomy' in the following code with the Taxonomy name
/** * Custom taxonomy section below the post */ if( ! function_exists( 'tie_custom_post_terms' )){ add_action( 'TieLabs/after_post_content', 'tie_custom_post_terms', 31 ); function tie_custom_post_terms(){ if( ! is_singular( 'post' ) ){ return; } $the_id = get_the_ID(); the_terms( $the_id, 'taxonomy', '<div class="post-bottom-meta"><div class="post-bottom-meta-title"><span class="fa fa-tags" aria-hidden="true"></span> '. esc_html__( 'Tags', TIELABS_TEXTDOMAIN ) .'</div><span class="tagcloud">', ' ', '</span></div>' ); } }