Page title same as most recent post title?
-
Hi everyone,
Little problem that I hope someone can help with.
I’d like to have my page title the same as the most recent entry in my blog.
I have at present:
<title><?php bloginfo(‘name’); ?><?php wp_title(); ?> : <?php the_title(); ?></title>
Which kinda works, but the title has the last blog entry on the page. It makes sense why it does this, but I can’t understand how to get the most recent entry title and use this as my page title whilst still having several entries on my main page.
Any help, really appreciated.
TIA
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Page title same as most recent post title?’ is closed to new replies.