Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter potato83

    (@potato83)

    Thanks – fwiw I figured out it was a classic case of plugin conflict – I had a plugin called “Hustle” active (although it wasn’t doing anything anymore) which I guess was the culprit breaking things. Deactivating Hustle did the trick =)

    cheers

    Awesome, thanks for this. I added a line to remove the potentially unwanted “Tag:” bit as well:

    add_filter( 'get_the_archive_title', 'remove_category_name_from_archive_title' );
    
    function remove_category_name_from_archive_title( $title ) {
        if ( is_tag() ) $title = str_replace( 'Tag:', '', $title );
        if ( is_category() ) $title = str_replace( 'Category:', '', $title );
    
    		return $title;
    }
Viewing 2 replies - 1 through 2 (of 2 total)