im using the <title><?php echo esc_attr( get_the_title() ); ?></title>
for the page title in my header.php and everything would be great if my main index and tag pages wouldn’t display the title of the last post.
to make it clear, what i’m trying to do is:
index.php displays “site name” as a title
tag.php displays “tag name @ site name”
single.php displays “post name @ site name”
could any one help me with this please?
thank you in advance
]]>Hi,
I just want my main page to say something along the lines of “Welcome to Dansbanners!”.
And then on each page just state the title of the post or page such as “Importance of Using Trackers!” or “Paid To Clicks”.
Rather than the way it currently is, including the “| Dansbanners” on each page’s title as in the following:
“Importance of Using Trackers! | Dansbanners”
or
“Paid To Clicks | Dansbanners”
.
.
etc
I know it has something to do with the following code:
<title><?php bloginfo(‘name’); ?><?php wp_title(‘?’,true,’left’); ?></title>
I did try to experiment with the above code a bit but ran into errors.
Anyone have any suggestions on how to solve this dilemma?
I’d appreciate it. Thanks in advance!
]]>