WP Title 2 - A Plug-in for WordPress
By ИцкатаThis plugin allows you to add and edit a Heading for your Posts, Pages and Custom Post Types, different from the Title (which is used in the navigation links). Very useful if you use WordPress as a CMS.
Description
If you use WordPress as a CMS for your website, and you want your headings and links to be different, this plugin will help you. It adds additional field in your Add/Edit Posts/Page form. When you fill it and save your Post, Page or Custom Post Type, the new heading is stored in the DataBase. The plugin replaces the_title() and wp_title() Template tags so that the new Heading is printed. Also, the Heading is printed in the title atribute in your navigation links.
Since plug-in version 3.0 you can enable/disable the plug-in for Posts. If enabled, a new Widget called „WP Title 2 Recent Posts“ appears in the Widgets. When you add the wiget to your sidebar, the short title is printed in the link navigation.
Since WordPress version 3.0, as the new Custom Post Types appeared, you can now choose whether to use WP Title 2 to have Custom Heading for all or some of your Custom Post Types, or none – you decide!
It is not necessary to fill the optional WP Title 2 Heading field – you can leave it empty and in that case your Post/Page/Custom Post Title and Post/Page/Custom Post Link will be the same.
WP Title 2 is compatible with all other plugins which are filtering the output of the Page Navigation and Navigation Menu Template Tags (wp_list_pages() and wp_nav_menu()).
This plugin is fully compatible with qTranslate, which allows you to post content in different languages.
Versions 3.6+ are compatible with WordPress version 3.0 and above. If your WordPress version is between 2.8 and 2.9.2, please download plug-in version 3.5.1 .
Versions 3.0 – 3.5.1 are compatible with WordPress 2.8 – 2.9.2. For WordPress version below 2.8, please download plugin version 2.1 .
Installation
Installation is extremely easy:
- Upload ‘wp-title-2′ directory to the ‘/wp-content/plugins/’ directory
- Activate the plugin through the ‘Plugins’ menu in WordPress
That’s all! Easy, eh?
Frequently Asked Questions
- Do I have to change my templates in order to make the plugin working?
No. You do not have to change anything. Simply unzip, upload and activate the plugin. - What will happen with my old Pages’ Title?
The default Title will be printed unless you add your custom heading - What will happen if I uninstall the plugin?
Again, the default Pages’ Title will be printed - My custom headings do not show! I use version 2.0*, what is the problem?
Have you deactivated and then activeated the plugin after the update from 1.* to 2.*? If not – try deactivate and activate WP-Title-2 - After updating to the latest version, the additional Heading field does not appear in Add/Edit Post form. What the hell happened?
Since version 2.0 the plugin does not affect Add/Edit Post pages. It is available only for Pages. Because the main idea is to separate Page Title from Page Link label (the one which appears in the Sidebar’s navigation). Posts do not appear in Sidebar’s navigation and it makes no sence to have different field for Heading.

Hi, thanks for the nice plugin… Just one question… What to do if I need to show title and title2 both?
Hi luca,
Please check the FAQ:
I would like to use the plugin to display a subtitle on my page (to display both the Title and WP Title 2 Heading). Is that possible with WP Title 2 and how?
Yes. In that case you have to change your theme templates:
<!-- this will print your original Title: --><h2>< ?php remove_filter('the_title','wptitle2_the_title',999); the_title(); ?></h2>
<!-- this will print WP Title 2 Heading: -->
<h3>< ?php add_filter('the_title','wptitle2_the_title',999); the_title(); ?></h3>
http://wordpress.org/extend/plugins/wp-title-2/faq/
Well, thank you for your kindness!
It’s ok if I need to show 2 included titles, but if I have just a title for one post and 2 titles for another, how do I avoid to show 2 times the same title?
Hi luca,
In this case leave the WP Title 2 field empty and use this snippet in your templates:
<!-- this will print your original Title: --><h2>
<?php
remove_filter('the_title','wptitle2_the_title',999);
$title = get_the_title();
echo $title;
?>
</h2>
<!-- this will print WP Title 2 Heading (if there is such): -->
<?php
add_filter('the_title','wptitle2_the_title',999);
$title2 = get_the_title();
?>
<?php if ($title !== $title2) : ?>
<h3><?php echo $title2 ?></h3>
<?php endif ?>
I want to use subtitles but I don’t know exactly where to paste the code. what php page do I paste it in ? In what part of the page?
In your templates where you want that. Your theme files (templates) are located in /wp-content/themes/your-active-theme/ . These are:
– single.php (single post page)
– page.php (page)
– archive.php (category, tag, or other archive type listing)
– category.php (category listing)
– tag.php (tag listing)
– etc.
You need to look for your heading tags, such as h2, h3, etc. Search for the_title .
Simply and excellent.
You rule, thanks a lot!
L
Hi,
I want to use different headings also for pages (not only for articles), but it does not work in my blog. How can I figure out this?
Thanks for help
Martin, WP Title 2 was designed especially for Pages. Post & Custom Post Type support came in later versions.
You may have a conflict with another plug-in, which modifies page title.
Hi,
How can I include special characters in the Title. For example I wish to include the Trade Mark special character ™
jim mccann,
go to Settings -> WP Title 2 and switch to HTML mode (check the checkbox). You need to type „™“ for ™ in your Heading input field.
I’ve downloaded the plugin. Trying to have the custom heading appear on the homepage only in the main headline (at the top above the slideshow), within the „hyperlinks“ section and the „HyperActivity“ sections only. I’d like the original titles to appear on the individual posts, though, and on other sections of the homepage (ie Most Popular, etc). Thoughts on best ways to do this?
Thanks so much!
-Lee
HyperVocal.com
Hi, this is a fantastic plugin.
Is it possible to add an extra column to the All Pages panel so that the Page Title and the Heading (created by the plugin) are both visible (in the back end – not the front end)?
No, currently there’s no such feature (and most probably there won’t be).
I’ve installed the plugin and it’s exactly what I was looking for. However, When I click on the nav item I have changed the title of, it puts the whole original page title in the nav. Go here: http://www.waterlooiowapetvet.com
Click About: http://www.waterlooiowapetvet.com/about-us/
And see what happens to the navigation bar. Any ideas?
Your plugin is great BUT would you know why in IE8 we are getting an AVG Alert that says:
Threat was blocked! File: http://www.chrishanley.com/wp-content/plugins/wp-title/lang/iui_2.ph
Threat name: Exploit Link to Exploit Site (type 2006 link)
It is possible that you uploaded this threat while uploading your files. There is no such file in plugins repository: http://plugins.trac.wordpress.org/browser/wp-title-2/trunk/lang?rev=465202
Scan your computer.
In my theme i-blog, a parent page lists all sub pages. I have also added the subpage listing plugin to have sibling pages listed for 2nd level menus.
I wanted the heading to be echoed along with the page titles, I was trying to use your plugin as sort of a subheading plugin having qTranslate support.
Is there a possibility? Probably we need to pass an ID in the wptitle2_the_title() function somehow.
I’m not sure which WP loop you are currently using, but if you use query_posts(), it modifies the global $post object, on which my plugin relies (for the post ID). This will do the trick. I didn’t test, it’s just theory..
Excellent plug-in many thanx
I would like to suggest another check box option to enable default title for browser page title.
In my case Default title is „The Face“ custom title is „The Face back to gallery“ so i can have a back link in the title, but I don’t want the custom title to be browser page title.
here is an example: http://www.dkphotography.net/?page_id=783
Is it possible?
Thanx
The reason why there is not such option is that the main idea of my plugin was to distinguish page title/heading from page link, for SEO needs and for more better menus (you’d better have your link „About Us“ instead of „About XXXXXX – History, Staff, etc.“ for example – too long.
I see why you would like such option, but in your case I would suggest you to find better alternative. I would not keep this back link in the heading – no chance. Furthermore, I will never insert a table inside a heading element
So I advise you to revise your HTML structure and think of a better way to implement your desired back link. I would hard-code it inside theme templates.
Hello,
I have just updated to 3.3, latest version of wordpress. And a part of your plugin doesn’t work anymore.
Normally when I hover over the page titles in navigation menu I see a pop up of what I writen in the heading in page/post.
My blog is the link of my name.
Regards,
Hm, I’m also with WP 3.3 and latest version of my plugin, and I don’t have your problem. You can check in this very blog, at the top there’s the blog menu, and the link to this plugin page. You should notice that the tooltip is the plugin’s heading:
Alright I see. Do you know were I should look into the theme files to see why it isn’t appearing and how to get it to work?
Or do you want to take a look?
regards
Yes I can take a look if you don’t mind. The problem can be anywhere – from another plug-in modifying titles, etc.
I’ll send you an email how you can contact me.
Hi,
I have a wordpress theme that doesn’t use H1 headings.
I installed your interesting extension and I would want to know if and how I can change an H2 title into an H1 one using your heading option. Could you give me an exemple of code
? Thanks a lot ! And merry Christmas
Hi, I’m using your plugin on a client’s site and it is working great. Thank you for the plugin.
Today I had a look into debug.log and there are a lot of these warnings:
[09-Jan-2012 12:00:10] PHP Notice: Trying to get property of non-object in /mnt/web9/32/82/52393682/htdocs/wordpress/wp-content/plugins/wp-title-2/wp-title-2.php on line 244
I’m using the latest WordPress and plugin version.
Thank you for this plugin! Very useful!