Latest Version: 2.1.1
Works on: From version 2.5+
Last Update: 23rd January 2013
1.1 – I realised you couldn't remove a label or attribute value once it had been set. This has now been rectified.
1.2 – Have now combined the two boxes into one section. It now appears at the top of the Advanced Options.
1.3 – Fixed an issue with version 1.2
1.4 – Minor fixes plus stripping out the added backslashes
1.5 – There is no 1.5 really, I just messed up the SVN update in the WP repository for version 1.4!
1.6 – Added in a migration function to allow you to migrate your settings over to the new All in one SEO pack plugin (if you use it) as it now uses the same code.
1.7 – Set the plugin priority to 1 as certain other menu plugins are getting their changes in first and preventing the plugin working.
1.8 – Some error fixes
1.9 – Couple of minor fixes to remove error messages showing for some.
1.9.1 – Fixed the insufficient priviledges error showing for some. Added in a couple of tags for the title attribute to replicate either the page title or menu label.
2.0 – Finally have managed to get this working with the link_before and link_after parameters, which means anyone with additional tags (such as <span> tags) within the link to make it easier for using images shouldn't find their tags being stripped out now. Also tidied up the admin on the add/edit Page.
2.0.1 – Had to revert some of the code to fix an issue that 2.0 caused with menus and child menus.
2.0.2 – Fixed the code to work with the link_before and link_after tags.
2.0.3 – Minor bug fix where the link to the settings page was wrong (only showed up for All in One SEO pack users).
2.0.4 – Minor bug fix to remove some HTML comments that caused layout issues in MSIE.
2.0.5 – Upgraded to work with WP 3.3 which not longer contains title attributes by default.
2.1 – Rewritten the code to make it more efficient and flexible, added in an All in One SEO pack import option.
2.1.1 – Bug fixes on migration and errors showing.
The Page Menu Editor allows you to customise the menu label and title attribute of any Page link that's being displayed with the Template Tag wp_list_pages(). Originally, by default WordPress gave the title attribute of any page link the same text as the anchor text and I felt there was no point repeating the same text, it's a complete waste of time in my opinion. You should only use a title attribute on a link if you need to expand on the already given anchor text e.g. If the anchor text is 'Home' then you could have the title attribute as 'Return to our Front Page'. Since WordPress 3.3, this has been removed and there is no title attribute by default.
This plugin allows you to have a different menu label to the page header (by default both are usually the same) and add a title attribute for any page you want to, and if you don't then no title attribute will be set. It's mainly been written for sites using WordPress as a CMS however can still be useful to anyone who has one or more pages on their site that are displayed using the wp_list_pages() tag.
For an example of the title attribute, hover your mouse over my pages above, 'Learn PHP' should display a tool tip of 'Reference Guide to PHP Tutorials on StuffBySarah'.
- Download the Plugin and unzip it.
- Upload it to your plugins directory and activate it via the Plugins section.
- Go into Manage – Pages and edit an existing page OR go to Write – Page. Below the content area you'll see two new boxes – Page Menu Label and Page Link Title Attribute See Figure 1.
- Fill this out with the text you require and Save or Publish the page.
- Figure 1: Page Link Title Attribute Form Box
- Figure 2: Title Attribute Showing on Link Hover
It's a pretty simple plugin and at present there are no options as I can't really think of any to offer! Any requests please leave them in the comments below and if I can I'll add them in. Any problems also leave them below.