Forums
-
- Forum
- Posts
-
- Installation
- 28,531
- Troubleshooting
- 62,964
- Themes
- 10,453
- Plugins
- 15,408
- Requests & Feedback
- 15,048
- Showcase
- 3,252
-
if you are using code snippets, then JUST the code below (not the “wp-content/theme” etc – do NOT add that) , and use this code as it has the correct apostrophies in it
add_filter( 'get_the_archive_title', 'to_archive_title_remove_prefix' );
function to_archive_title_remove_prefix( $title ) {
if ( is_post_type_archive() ) {
$title = post_type_archive_title( '', false );
}
return $title;
}