SHARE
TWEET

Untitled

a guest Aug 25th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter( 'get_the_archive_title', 'artabr_remove_name_cat' );
  2. function artabr_remove_name_cat( $title ){
  3.     if ( is_category() ) {
  4.         $title = single_cat_title( '', false );
  5.     } elseif ( is_tag() ) {
  6.         $title = single_tag_title( '', false );
  7.     }
  8.     return $title;
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top