Code Snippet not working
-
Hi. I have used this snippet on FRONTEND only:
function prefix_category_title( $title ) {
if ( is_category() ) {
$title = single_cat_title( ”, false );
} elseif ( is_tag() ) {
$title = single_tag_title( ”, false );
}
return $title;
}
add_filter( ‘get_the_archive_title’, ‘prefix_category_title’ );But, it is not working. Please help.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Code Snippet not working’ is closed to new replies.