New WordPress Plugin: Custom Title Attributes
Yes, I’ve been busy again and have created my second (well second released) WordPress Plugin. Custom Title Attributes allow you to change the title attribute of page links displayed using the wp_list_pages() template tag in WordPress.
I created this for use on the various sites we have running WordPress as a CMS. I noticed about 6 months ago that the title attributes used on the Page links contained identical text to the anchor text – a waste of time in my opinion. I only add a title attribute if I think it’s needed, which at times it is. After searching high and low I couldn’t find anything that did this, so after a bit of studying of the Plugin Codex I realised that there was a way to do it. After a lot of learning of Pattern Syntax I finally cracked it.
It’s a pretty simple plugin that just gives you an extra field (custom field actually, but I’ve put it below the content area) to complete when you add or edit a page to your site. It’s not CMS specific as a lot of blogs have additional pages and this will kill off any duplicate title attribute unless you add in your own custom one.
I’ve tested it on a few sites including sites with and without permalinks, and sites with sub pages as well as top level. It’s seemed fine but if you give it a go and find an issue please let me know on the plugin page 🙂