[Resolved] separation between author name and category

Home Forums Support [Resolved] separation between author name and category

Home Forums Support separation between author name and category

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1664737
    Den

    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',
        );
    } );
    #1664777
    David
    Staff
    Customer Support

    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 );
    #1664802
    Den

    Thanks David 🙂

    #1665124
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.