Advertisement
Guest User

kids-education-customize

a guest
Aug 15th, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1.  
  2. function kids_education_child_remove_cat_titles($title) {
  3.  
  4.     if ( is_category() ) {
  5.  
  6.             $title = single_cat_title( '', false );
  7.  
  8.         } elseif ( is_tag() ) {
  9.  
  10.             $title = single_tag_title( '', false );
  11.  
  12.         } elseif ( is_author() ) {
  13.  
  14.             $title = '<span class="vcard">' . get_the_author() . '</span>' ;
  15.  
  16.         }
  17.  
  18.     return '';
  19.  
  20. }
  21.  
  22. add_filter( 'get_the_archive_title', 'kids_education_child_remove_cat_titles' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement