Advertisement
all2aller

Wordpress Custom Taxonomy Fixed Ttitle

Aug 15th, 2014
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. function CustomTitle()
  2.     {
  3.     global $paged;
  4.     $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  5.     if (is_front_page() or is_single())
  6.         {
  7.         $custom_title = wp_title('');
  8.         return $custom_title;
  9.         }
  10.       else
  11.         {
  12.             {
  13.             if ($paged == '1' or $paged == '0')
  14.                 {
  15.                 $custom_title = wp_title('');
  16.                 $custom_title.= ' - Domainname';
  17.                 return $custom_title;
  18.                 }
  19.               else
  20.                 {
  21.                 $custom_title = wp_title('');
  22.                 $custom_title.= ' - Pagina ' . $paged . ' - Domainname';
  23.                 return $custom_title;
  24.             }
  25.         }
  26.    
  27.     }
  28.     }
  29.  
  30.  
  31.     echo CustomTitle();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement