Logo
Tips And Tricks

Essential Code Snippets

Below is a collection of essential PHP hooks and filters designed to help you customize areas of your website that you can't directly modify.


Remove "Category:" from the post category archive page title


add_filter( 'get_the_archive_title_prefix', 'modify_archive_title', 10, 1 );

function modify_archive_title( $title ) {

if($title == 'Category:') {

return;

}

return $title;

}





Last updated on 5/20/2024, 2:08:50 PM
Was this page useful?