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.