Archived topic
separation between author name and category
3 replies · Started by Den on February 19, 2021
Viewing posts 1–4 of 4
Hi team,
I have placed my category URL at the top of my page using (generate_header_entry_meta_items). But now it looks like the author name and category link, both are single URL. Means, there is no separation between them. How do I add a "/" between these 2?
For Example - https://ibb.co/TBWf74C
The filter I added on my fun.php file -
add_filter( 'generate_header_entry_meta_items', function() {
return array(
'date',
'author',
'categories',
);
} );
Hi there,
use this snippet to output whatever you want before the terms eg.
add_filter( 'generate_inside_post_meta_item_output', function( $output, $item ) {
if ( 'categories' === $item ) {
return ' / ';
}
return $output;
}, 50, 2 );
Thanks David :)
You're welcome
This archived topic is closed to new replies.