mh_wp_title

The MH Corporate lite mh wp title function.

Description

mh_wp_title( $title, $sep ); 

Parameters (2)

0. $title
The title.
1. $sep
The sep.

Usage

  1. if ( !function_exists( 'mh_wp_title' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4. // The title. 
  5. $title = null; 
  6.  
  7. // The sep. 
  8. $sep = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = mh_wp_title($title, $sep); 
  12.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function mh_wp_title($title, $sep) { 
  2. global $paged, $page, $post; 
  3. if (is_feed()) 
  4. return $title; 
  5. $title .= get_bloginfo('name'); 
  6. $site_description = get_bloginfo('description', 'display'); 
  7. if ($site_description && (is_home() || is_front_page())) 
  8. $title = "$title $sep $site_description"; 
  9. if ($paged >= 2 || $page >= 2) 
  10. $title = "$title $sep " . sprintf(__('Page %s', 'mhc'), max($paged, $page)); 
  11. return $title;