WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox 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.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-06-2008, 11:36 PM
WebProWorld Pro
 

Join Date: Aug 2005
Posts: 171
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.

Last edited by sarpras : 02-06-2008 at 11:42 PM.
Reply With Quote
  #2 (permalink)  
Old 02-07-2008, 01:29 AM
incrediblehelp's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,597
incrediblehelp 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, 07:17 PM
WebProWorld Pro
 

Join Date: Aug 2005
Posts: 171
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.
Reply With Quote
  #4 (permalink)  
Old 02-07-2008, 09:31 PM
incrediblehelp's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,597
incrediblehelp 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
Tags: ,



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

vB 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 04:56 PM
Same META & Title on every page? phunklord Search Engine Optimization Forum 1 02-11-2005 10:20 AM
2 <title> sections on 1 page eliboone Search Engine Optimization Forum 4 11-10-2004 04:27 PM
Dynamic Page Title Steven Glover Search Engine Optimization Forum 3 08-02-2004 09:57 PM
Formatting Meta tags: title VS DC.title VS http-equiv=title Sergio Simarro Search Engine Optimization Forum 8 05-27-2004 11:48 AM


Search Engine Optimization by vBSEO 3.2.0