Advertisement
Guest User

education-hub

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