iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2008, 12:36 AM
WebProWorld Pro
 
Join Date: Aug 2005
Posts: 162
sarpras RepRank 1
Default Title on Tag Page

Title on tag page display name of the blog. It not display Tag Title or Title of the tag page.

My Title code on Header is

<title>
<?php if (is_home())
{
bloginfo('name');
echo ' -- ';
bloginfo('description');
}
elseif (is_single() ) { single_post_title();}
elseif (is_page() ) { single_post_title();}
else
{ ?>
<?php wp_title(' '); ?>
<?php if(wp_title(' ', false))
{
echo ' | ';
} ?>
<?php bloginfo('name');
} ?>

</title>

If i use
elseif (STP_CurrentTagSet()) { single_post_title();}
It display Tag title and blog name without space.
ex: TagBlogname (no space).

Please help me.
__________________
Articles2u.com
Kokkada.com

Last edited by sarpras; 02-07-2008 at 12:42 AM.
Reply With Quote
  #2 (permalink)  
Old 02-07-2008, 02:29 AM
incrediblehelp's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,573
incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4
Default Re: Title on Tag Page

So is this a word press title your trying to create within a template?
Reply With Quote
  #3 (permalink)  
Old 02-07-2008, 08:17 PM
WebProWorld Pro
 
Join Date: Aug 2005
Posts: 162
sarpras RepRank 1
Default Re: Title on Tag Page

Yes, I want to change title of tag. Title of the tag page display name of tag, now diaplay name of the site.
__________________
Articles2u.com
Kokkada.com
Reply With Quote
  #4 (permalink)  
Old 02-07-2008, 10:31 PM
incrediblehelp's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,573
incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4
Default Re: Title on Tag Page

I use this for my title and description in WP:

PHP Code:
 <title><?php if ( get_bloginfo('version') < '2' ) : echo wp_title('',false); if ( !is_home() ) : echo ' - '; endif;
elseif ( 
is_search() ) : echo wp_specialchars($s).' - ';
elseif ( 
is_category() ) : single_cat_title(''); echo ' - ';
elseif ( 
is_year() ) : echo get_the_time('F').' - ';
elseif ( 
is_month() ) : echo get_the_time('F Y').' - ';
elseif ( 
is_day() ) : echo get_the_time('F jS, Y').' - ';
elseif ( 
is_404() ) : echo "Not found - ";
elseif ( !
is_home() ) : if ( get_the_title() ){ the_title(); }else{ echo "Untitled"; }; echo " - ";
endif 
// is_search() ?><?php bloginfo('name'?>
</title>


<meta name="description" content="<?php wp_title(' '); ?>
<?php 
if(wp_title(' 'false)) { echo ' - '; } ?>
<?php bloginfo
('name'); ?>" />
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Title Tag Placement on Page garbageaccount Search Engine Optimization Forum 4 06-15-2005 05:56 PM
Same META & Title on every page? phunklord Search Engine Optimization Forum 1 02-11-2005 11:20 AM
2 <title> sections on 1 page eliboone Search Engine Optimization Forum 4 11-10-2004 05:27 PM
Dynamic Page Title Steven Glover Search Engine Optimization Forum 3 08-02-2004 10:57 PM
Formatting Meta tags: title VS DC.title VS http-equiv=title Sergio Simarro Search Engine Optimization Forum 8 05-27-2004 12:48 PM


All times are GMT -4. The time now is 12:01 PM.



Search Engine Optimization by vBSEO 3.3.0