Custom Title Attributes
The custom page title attribute plugin has now been superceded by the Page Menu Editor, which incorporates this plugin along with the option of editing the menu label too.
Updates will not continue on this plugin, so instead I recommend you switch to using the new plugin.


The pages I have currently are pretty much self-explanitory but I have a few plans for adding more that this will be handy for. Thanks for taking the time to code it
By Bob! on Mon, 5 November, 2007
Thing is, this plugin removes the title attribute (unless you set a custom on) for each page. Afterall, what's the point of repeating the anchor text in the title attribute? I'll only set custom ones if they need it, otherwise I'd rather have no title attribute at all
By Sarah on Mon, 5 November, 2007
Cool, I will check it out.
By Ben Partch on Mon, 5 November, 2007
Cheers Ben. Let me know if you stumble across any problems (shouldn't do) or have any additional ideas, as I couldn't think of any
By Sarah on Mon, 5 November, 2007
Seems my pattern matching didn't want to work on a couple of sites so I've changed the code to one I know works. Back to the books to get the better idea/method working!
By Sarah on Tue, 6 November, 2007
Great plugins… seeing more of codes/wordpress than AIS… now I got why you changed the blog url
By Jalaj on Tue, 13 November, 2007
Jalaj, I still have both blogs. You're just on the techie one
By Sarah on Tue, 13 November, 2007
Seems like I followed "Pattern matching with PHP" link on your AIS blog to reach here… Not wrong if someone says "you learn by your mistakes…" as I will learn more of wordpress and PHP following a mistaken click… I am feeling like Columbus… great to discover this blog… don't know how I missed it earlier.
By Jalaj on Tue, 13 November, 2007
Maybe I need a bigger header to denote where people are? Still, glad you're liking both sites. The front page of the domain links to and displays from both
By Sarah on Tue, 13 November, 2007
Upgraded this plugin to
a: Not display on the Add/Edit Post page
b: Fit in with the new WordPress 2.5 design
By Sarah on Fri, 9 May, 2008
This is just what I was looking for.
However, I also use the wswwpx_fold_page_list() plug-in for my menu.
I've tried editing your plug-in, replacing "wp_list_pages" with "wswwpx_fold_page_list", but can't get it to work.
Any ideas?
PS: I'm not a coder so I'm probably missing something simple!
By Chris Birchall on Sun, 18 May, 2008
Hi Chris,
The plugin uses a built in 'hook' to grab the page list and alter it. It probably won't work on a plugin as the plugin wouldn't be known within the core WordPress files. Your best option is to perhaps contact the plugin author and ask them if it's possible to get them to add the title attribute option in. Point them to this page and tell them to grab the admin code from my plugin if they want
If you get no joy let me know and I'll take a look at the plugin and see if I can amend it myself for you.
By Sarah on Mon, 19 May, 2008
Hi Sarah,
Is it possible to modify the list pages code so
that you can choose the text used to create the links?
For example, a page title might be "The Future
Search Principles for Businesses, Organizations
and Communities." But I want the link in the
Page list to be "Future Search Principles."
I want to avoid hard-coding the list links,
so any help you could provide would be great. Do you know of any plugins that would provide
this capability? If not, I would like to discuss costs for customization work.
Thank you!
By Lana on Tue, 20 May, 2008
Hi Lana, your best option would be to add in either the SEO Title Tag plugin or the All-in-one SEO pack plugin, which will allow you to change the title of the page, then when you create your page your page link will use the title of the page specified at the top of the Write Page page, and the title of the page will use the custom title given using the plugin (if that all makes sense!).
By Sarah on Tue, 20 May, 2008
I don't understand yet. But I have the All in One SEO installed, so I'll play around and see what happens. Thanks!
By Lana on Tue, 20 May, 2008
I understand that I can change the Title tag using All in One SEO, and that's great. But for additional SEO purposes, I want the page "headline" to contain key words (in my theme, the page title/headline uses the H1 tag). So unless I've misunderstood your directions, I still have the same issue of the page headline being used to create the link text.
Sorry if I'm not being clear about what I want
By Lana on Tue, 20 May, 2008
Hi Lana,
Alter your single.php page to not display the tag the_title() between the h1 tags, remove the h1 tags line in fact, then in your posts create your page headline title within the content area.
So you'd control your page title via the All-in-one SEO pack title box, you'd control your page heading via the content box by adding the title you want at the top between h1 tags, and then your page link anchor text is set in the page title box.
This is how I've done it on other sites without a problem
By Sarah on Tue, 20 May, 2008
Woo hoo! That worked! I've spent hours searching for this information. Thank you so much.
Do you have a donation button?
By Lana on Tue, 20 May, 2008
Glad to hear it Lana
Yes my donation button is on my plugins page
By Sarah on Tue, 20 May, 2008
"…hover your mouse over my pages on the right, 'Learn PHP' should display a tool tip of 'Reference Guide to PHP Tutorials on StuffBySarah'…"
Out of curiosity, I tried this (using Firefox 2) and the tooltip said, 'View all posts filed under 'Learn PHP.' Therefore, I assume you are no longer using the plugin.
As a non self-hosted WordPressMU user, the plugin wouldn't have been an option for me, but you made some good points in your post. Excessive use of the 'title' attribute is not only unnecessary; it's also bad for accessibility.
By Chris on Tue, 10 June, 2008
Hi Chris, the plugin is still in use. You've hovered over the blog category Learn PHP, up top are my pages along the horizontal nav where you'll find the page. I know, it's confusing, I'll get that changed!
I must admit, it is quite surprising that WordPress uses it as default, and quite a few people are surprised when they find out from what I've seen. I completely agree with the RNIB over the issues of excessive use. I know a few developers that feel that it's acceptable, I guess they've never had to rely on a screen reader before.
By Sarah on Tue, 10 June, 2008
I'm using this plugin with WP 2.6.1, and I've noticed that each time I edit a page, the custom fields set by this plugin are being duplicated – one instance for each page revision (10 revisions = 10 custom fields with the same content).
I've turned off revisions on my install for the moment and that has resolved this temporarily. Is there something that needs to be changed in the plugin to prevent this from happening, or is this a WP bug?
By Kim on Mon, 18 August, 2008
I've not had a chance to test the plugins out on 2.6.1 yet but there shouldn't be any reason why they won't work, unless the new subversion system is causing the problem.
I'll try and take a look this week and update the post (and plugin if necessary) accordingly.
By Sarah on Mon, 18 August, 2008
Hi Sarah – I've turned off post revisions, and the problem has disappeared, so I think that the versioning system is what is causing the duplicate custom field entries. It is happening with another plugin that uses a custom field as well. Sounds like it's an issue that the WP crew is going to have to look into.
By Kim on Fri, 22 August, 2008
Hi Kim, thanks for your update. I've tried this out on WP 2.6.1 and can see your point. I'll see if there's a way to stop the custom field duplicating and post up if I can find a solution.
By Sarah on Tue, 26 August, 2008
This plugin has now been upgraded and tested to version 2.6.1. The duplication issues have now been fixed.
By Sarah on Tue, 26 August, 2008
Thanks, Sarah. Nice!
By Wayne on Fri, 5 September, 2008
Thanks for this plugin. Saved my life. Got me out of a deep hole.
By John Baker on Mon, 8 September, 2008
You're welcome Wayne.
No problem John, glad it helped
By Sarah on Mon, 8 September, 2008