you could some code like this:
<title>
<?php if(is_page('3')) { echo 'custom title tag of page 3'; }
elseif(is_page('17')) { echo 'custom title tag of page 17'; }
else { wp_title('«', true, 'right'); bloginfo('name'); } ?></title>
conditional tags:
http://codex.ww.wp.xz.cn/Conditional_Tags#A_PAGE_Page
question: where and how would you define/save the custom titles?
if you are using custom fields, you code could look something like this:
<title>
<?php if(is_page()) { echo get_post_meta($post->ID, 'custom_title', true); }
else { wp_title('«', true, 'right'); bloginfo('name'); } ?></title>
(not tested)
depends on the current code of the title tag, and what you would like to show if it is not a page.
i assume that some seo plugins might handle custom title tags for pages as well.
Hi there and thanks,
I want to include a custom field to manually enter the title tag contents. I’ll give this code a try.
Cheers.