Skip to content

Instantly share code, notes, and snippets.

@shubhw12
Created February 16, 2020 14:14
Show Gist options
  • Save shubhw12/12f204c61b7d5854507a124676159816 to your computer and use it in GitHub Desktop.
Save shubhw12/12f204c61b7d5854507a124676159816 to your computer and use it in GitHub Desktop.
display tags below post
add_filter( 'astra_post_tags', 'remove_tags_callback' );
function remove_tags_callback(){
return ' ';
}
add_action( 'astra_entry_after' , 'add_tags_callback');
function add_tags_callback(){
$output = '';
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', __( ', ', 'astra' ) );
if ( $tags_list ) {
$output .= '<span class="tags-links">' . $tags_list . '</span>';
}
echo $output;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment