Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Mar 2nd, 2012  |  syntax: PHP  |  size: 0.52 KB  |  hits: 75  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <title>
  2.                 <?php global $page, $paged;
  3.  
  4.                 wp_title( '|', true, 'right' );
  5.  
  6.                 // Add the blog name.
  7.                 bloginfo( 'name' );
  8.  
  9.                 // Add the blog description for the home/front page.
  10.                 $site_description = get_bloginfo( 'description', 'display' );
  11.                 if ( $site_description && ( is_home() || is_front_page() ) ) {
  12.                         echo " | $site_description";
  13.                 }
  14.                
  15.                 // Add a page number if necessary:
  16.                 if ( $paged >= 2 || $page >= 2 ) {
  17.                         echo ' | ' . sprintf( __( 'Page %s', 'raw_theme' ), max( $paged, $page ) );
  18.                 }
  19.                 ?>
  20.         </title>