Title: Meta Tag Title
Last modified: August 20, 2016

---

# Meta Tag Title

 *  [newone1](https://wordpress.org/support/users/newone1/)
 * (@newone1)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/meta-tag-title/)
 * Hi,
 * I am using twenty ten theme, and I want better meta title and description for
   my ‘is_tag’ title. Currently I am having the PHP :-
 * For example if Tag is ‘Work’ – I want the Meta Title should be
 * Work (79 Things have been added)
 * and in description – 79 things have been added in as ‘work’
 * Pl guide me what changes to be done in below PHP –
 *     ```
       <?php
       $blog_title = get_bloginfo('name'); 
   
       if (is_home()) {
           $blog_title = get_bloginfo('name') . " - " . get_bloginfo('description');
   
       }
       if (is_single()) {
           $blog_title = get_the_title() . "   " . get_bloginfo('name');
       }
       if (is_category()) {
           $blog_title = single_cat_title("",false);
       }
       if (is_tag()) {
           $blog_title = single_tag_title("",false);
       }
       if (is_page()) {
           $blog_title = the_title('','',false);
       }
       // Add a page number if necessary:
       	global $page, $paged;
       	if ( $paged >= 2 || $page >= 2 )
       		$blog_title .= ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );
       ?>
       <title><?php echo $blog_title; ?></title>
       ```
   

The topic ‘Meta Tag Title’ is closed to new replies.

## Tags

 * [meta title](https://wordpress.org/support/topic-tag/meta-title/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [newone1](https://wordpress.org/support/users/newone1/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/meta-tag-title/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
