Page Menu Editor

Latest Version: 1.6
Works on: Version 2.5 – 2.9.1
Last Update: 12th January 2010

Notice

This plugin does NOT work with the All in one SEO pack as since version 1.6.3 the AIOSP plugin uses the same code as this plugin, therefore it is not required if you are running the AIOSP plugin. However, if you are not, then it's fine ;)

Update Log

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.

The Plugin

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(). At present, by default WordPress gives the title attribute of any page link the same text as the anchor text. Why?! There is 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'.

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'.

Instructions

  1. Download the Plugin and unzip it.
  2. Upload it to your plugins directory and activate it via the Plugins section.
  3. 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.
  4. Fill this out with the text you require and Save or Publish the page.
Figure 1: Page Link Title Attribute Form Box
Page Menu Editor Screenshot
Figure 2: Title Attribute Showing on Link Hover
Title Attribute Screenshot

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.

Subscribe to Email Update Notification

141 Responses to “Page Menu Editor”

  1. Hi Sarah,

    This is great! I've been building some sites for clients using Wordpress and static pages as a CMS, this is something that's bothered me for a little while.

    One of the other great frustrations is that the H1 or H2 page title (as opposed to the title="blah blah blah" with the actual anchor text of the link) always defaults to the same as the anchor text for the link. For example, when you click one of the links above on this page (ie the "learn PHP" link), the page title and headline on the page you are taken to are the same as the anchor text in the link you clicked.

    This is absolutely craptacular for SEO. I know using the All in One SEO plugin I can change the actual text between the title tags, but do you know of a way to change the H1 / H2 text that appears as the headline on that static page?

    Thanks, and great to see you back here!

    Stu

    By Stu on Sat, 27 September, 2008

  2. Hi Stu. I probably didn't explain my post too well (if I've read your comment correctly). As you know, the title field in the Write Page by default 'supplies' the page title, header, link title attribute and link anchor text.

    By using the All in One SEO pack you can change the page title. By using my Page Menu Editor plugin you can change the link title attribute and the link anchor text.

    So this means that the title field on the Write Page when then be solely for the page header.

    Basically you get 4 text inputs instead of 1.

    Hopefully that explains it better? If you want to use the title field for something different and have a specific input for your page header then we'd need to look at a way of editing the_title() output, however my plugin used in conjunction with the all in one SEO pack should cover all your CMS needs as far as the page info goes.

    Let me know if I've misunderstood you :)

    By Sarah on Sat, 27 September, 2008

  3. Ah, I get it now

    (should have just downloaded the bloody thing and had a look in the first place before asking stupid questions!)

    This plugin does EXACTLY what I was asking about! :-)

    Pure brilliance – this plugin should be right up there with the all in one SEO pack as an absolute must have for anybody looking to SEO a Wordpress install. :-)

    I'm staggered that something like this didn't exist before.

    Nice one Sarah, thanks a million!

    By Stu on Sun, 28 September, 2008

  4. :D I did wonder! Glad to be of help :)

    By Sarah on Sun, 28 September, 2008

  5. Just thought I'd update this page and say this plugin is now on WordPress at http://wordpress.org/extend/pl.....nu-editor/

    By Sarah on Tue, 30 September, 2008

  6. This is a GREAT plugin Sarah! Anyone with the All in One SEO pack should consider adding this to there plugin collection. Thanks for your innovative thinking and hard work. I think we will definately see a SEO benefit from this one. I'm off to download it …

    By Tammie on Wed, 15 October, 2008

  7. Thanks Tammie, glad you like it :)

    By Sarah on Wed, 15 October, 2008

  8. Thank you so much for providing nice plugin. I just come to know about it, and will soon add in my blog. Great job, Sarah.

    By Lisa John on Fri, 17 October, 2008

  9. You're welcome Lisa :)

    By Sarah on Fri, 17 October, 2008

  10. This is great Sarah! I had removed the code for the_title in my template so that I could have the h2 page titles the way I wanted them. Now I can put that back in! :)

    I was already using your Page Link Title Attributes plugin, along with the SEO Title Tag plugin, to get more control. This plugin completes the circle for me. Thanks!

    By Kim on Sat, 18 October, 2008

  11. You're welcome Kim. I was doing the same as you with the_title() tag, which is fine for developers but not for clients who don't even know what a h2 is!

    By Sarah on Sat, 18 October, 2008

  12. I've gotten all of my page titles converted over to using the h2 in the template again. However, I've run into a conflict between this plugin and another one that I use – Access Keys (http://anthologyoi.com/wordpre.....-keys.html).

    When Access Keys is activated, it is trumping your plugin, and the menu labels are reverting back to the page title in the h2 tag.

    I've turned off Access Keys for now, but would like to have that functionality back.

    Could you take a look and see if you can figure out what the problem might be? Even better yet, maybe you can add the access key functionality to this plugin so there would be no more conflicts. :D

    By Kim on Sun, 19 October, 2008

  13. Hi Kim, sounds like one plugin is hindering the other, that's the downside to using two plugins that target the same area. The only fix is probably to merge the two but I honestly can't say when that'll be as I'm back to work tomorrow and will be caught up working for a while now. I'll see what I can do and update this post accordingly if/when I've dealt with it.

    By Sarah on Sun, 19 October, 2008

  14. Great Plugin Sarah. Thank You!

    By Ron on Mon, 20 October, 2008

  15. This is a great solution. Thanks so much!

    By Denise on Wed, 22 October, 2008

  16. hi. Thanks for plugin

    perfect.

    Regards

    By baron on Sat, 25 October, 2008

  17. What a godsend! Thanks. Seems like Page Menu Editor will yet have legs since WP 2.7 still doesn't seem to incorporate this rather basic functionality.

    One thing I wondered about is the use of two separate drop tabs for "Page Menu Label" and "Page Link Title Attribute".

    Combining these into a single drop tab labeled simply "Page Menu Editor" would both save room and allow users to edit both fields in one place without having to needlessly open two separate drop tabs.

    By Cliff on Sat, 8 November, 2008

  18. Hi Cliff, yes I actually realised that yesterday when I was looking at it! I'll get them combined this weekend and updated :)

    By Sarah on Sat, 8 November, 2008

  19. I've now combined the two boxes into one section, and it can now be found at the top of the Advanced options section on the Write Page :)

    By Sarah on Sat, 8 November, 2008

  20. Thanks for the update Sarah – it's much better having them combined into one box. :)

    Did you ever get a chance to look at the conflict issue between this plugin and the Access Keys plugin? I know you've been pretty busy, was just wondering…

    By Kim on Sun, 9 November, 2008

  21. Quick note – I've tested this plugin on WP 2.7-Beta2, and it installs and functions without any issues, and displays perfectly in the new admin 2.7 layout. :)

    By Kim on Sun, 9 November, 2008

  22. Excellent! Now that's what I call a snappy turnaround! c|;-}

    I also have tested your handy plugin in latest nightly of WP 2.7 b2 without problems. Thanks again, Sarah!

    By Cliff on Sun, 9 November, 2008

  23. Oh wait, I spoke too soon. I'm noticing on both 2.6.3 and 2.7 installs of WP that the new single drop tab shows up fine but any text entered in the two fields does not.

    Is that purposeful? Seems odd to enter link and title text in the two fields but then not see what was entered in the fields after saving.

    To be clear, the plugin is working on the frontend menu items. However, the text entered in the admin section does not stay in the two fields.

    By Cliff on Sun, 9 November, 2008

  24. I really should have done more testing before I responded twice already. Now I've discovered something else that is a show-stopper.

    As I mentioned above, entering text in the two fields and then saving makes working menus even though the text does not persist in the two fields.

    However, if I go back and edit the page body content or anything else (without touching the Page Menu Editor fields), and then save, it loses the information (presumably because the fields are empty). The frontend menus then show the entire text in the pages' title field.

    In other words, it gets broke.

    This means I must remember to re-enter the Page Menu Editor fields' text whenever I update a page before saving.

    By Cliff on Sun, 9 November, 2008

  25. Kim, I don't know if they plugins will work together but I'm still looking at that.

    Cliff, thanks for your testing! The version I tested was fine, some how two lines of code got removed before it got updated on the WP site (my fault!). I've fixed this, tested it and updated it. Cheers for letting me know. Much appreciated :)

    By Sarah on Mon, 10 November, 2008

  26. I absolutely LOVE this plugin. But version 1.2 does have problems. When I edit a page, the fields are blank. If I change and save the page, then the title reverts to the WP default.

    By Barbara on Mon, 10 November, 2008

  27. Hi Barbara, glad you like the plugin. Sorry, the 1.2 update lost a line of code somehow. This has now been updated on the WordPress plugin site so the update should come through automatically soon.

    My apologies for the inconvenience!

    By Sarah on Mon, 10 November, 2008

  28. Perfect! I've tested more thoroughly in 2.6.2 / 2.7 and can see nothing amiss. Thanks again for such a helpful plugin and for quickly fixing any small issues!

    By Cliff on Mon, 10 November, 2008

  29. No problem Cliff. Thanks for all the testing :)

    By Sarah on Mon, 10 November, 2008

  30. Awesome! Thanks again!

    By Barbara on Mon, 10 November, 2008

  31. Hi Sarah -

    The plugin's working great now – many thanks!

    I was rearranging the layout of the add new page/edit page in 2.7, and decided to move your plugin's box from the main section over to the sidebar. Doing that makes the input boxes extend off the right side of the page.

    I did a bit of work with the html layout in the plugin, and have come up with something that works no matter which column the Page Menu Editor is in (main or sidebar). I'd be more than happy to send you my changes for you to incorporate in the plugin, if you'd like them. Just drop me a line at the email address in this post. :)

    By Kim on Fri, 14 November, 2008

  32. Hmmm – I just tried to implement this in a site that is using WP 2.5.1 and it doesn't seem to work. The only thing that changed is the Page Title. Weird.

    Upgrading should be the answer except that it's kind of a delicate balance w/ this particular site…

    Any ideas? The only other plugin that might interfere is Platinum SEO Pack.

    Thanks!

    By Barbara on Thu, 4 December, 2008

  33. Please disregard my comment from yesterday. Problem is in the theme I am using.

    By Barbara on Thu, 4 December, 2008

  34. I have just started looking at Wordpress as a CMS and have been learning how to customize it. I have spent the last two days trying to work out how to customize the headings of each page so that they appear different to the navigation.

    Such a pleasant surprise to find this plugin that provides such a simple solution. This is great! Thankyou!

    Eric

    By ckd on Mon, 8 December, 2008

  35. I have a question relating to my above comment and the Page Menu Editor plugin. I have activated the plugin and changed my page headings. However, is there a way to change the page heading on the actual blog page?

    For example, say my blog page is called 'articles' in the navigation menu, what would I need to do to have a permanent page heading at the top of the blog page as opposed to the heading being set by the most recently written post?

    Eric

    By ckd on Mon, 8 December, 2008

  36. Hi Eric, I'm a bit lost on what you mean, sorry!

    My plugin is for static Pages and not posts, so it won't have any affect there. With WordPress you usually just give a page a title and content. That title is used in the page title, page header, anchor text and anchor title attribute.

    My plugin allows you to specify different content for the anchor text and title attribute. So when you say you have a page 'Articles', in the page title box (the first box on the Write Page) this title is your page title and page header. Then in my plugin you set the anchor text.

    If you want to have a different page title to page header, then you also need the SEO Title Tag or All in One SEO pack plugin.

    I hope that explains things. Let me know if it doesn't.

    By Sarah on Wed, 10 December, 2008

  37. Hi Sarah, thanks for the reply.

    I am a bit of a noob at configuring Wordpress but am starting to get the hang of it.

    I seem to have resolved the issue I had above and the only remaining problem I get now is with regards to how my titles are appearing in the browser. Currently the blog title shows the same as my homepage title. As my blog is not my front page, I am trying to get it to display like the other pages ie Articles | My Site Name.

    I am using SEO Title Tag & All In One SEO plugins but it still is not adding a specified title to my blog page. Seems to be treating it in the same way as my static homepage which just shows my site name.

    I am wondering if it is the way I have setup my static homepage? I used the method as outlined here:
    http://bloggingexperiment.com/.....e-page.php

    I know there is another way to create a static homepage by creating a new page and calling it 'home.php', but the above method did not seem to require that.

    Do you think that the method I have used might be causing the problem?

    Thankyou

    Eric

    By ckd on Mon, 15 December, 2008

  38. Hi Eric, to be honest I'm getting confused now. Do you have a site or a test site I can see this on? You mention your blog title is the same as the home page title, however with a static front page (which you have done correctly), you no longer have a blog front page, just the category pages.

    If you can send me a link or a link to the problem pages then I can have a look at these. Feel free to use my contact form if you want to keep the links private from the public.

    By Sarah on Mon, 15 December, 2008

  39. thanks sarah, now i don't need to manually edit my header.php :D

    By poer on Mon, 22 December, 2008

  40. You're welcome :)

    By Sarah on Thu, 25 December, 2008

  41. Nice plug-in but unfortunately its menu labels seems to be ignored by the Fold Page List plug-in. I have All-in-one SEO installed as well and the page names generated by the Fold Page List plugin are based on the All-in-one SEO page titles instead of the Page Menu Editor labels.

    I am surprised that nobody commented on this earlier in this thread: page names are important if you have lots of pages and once you have lots of pages, using wp_list_pages() is very clumsy and you have to start looking around for a more elegant menu-ing system like Fold Page List.

    If anyone has a solution or work-around I'd be grateful.

    By Laurens on Fri, 26 December, 2008

  42. Hi Laurens, I've never used the Fold Page List plugin however if it's not using the standard WordPress function of wp_list_pages then coding for it needs to be done by the plugin author. You'll often find certain plugins don't work together, simply because there's too much going on or the plugins target different WP functions. What does the plugin do exactly?

    By Sarah on Sun, 28 December, 2008

  43. Sarah, thanks for the feedback.

    The Fold Page List plug-in adds collapsable subpages as well a few other functions that wp_list_pages() lacks. I got in touch with the creators and they send me a new as-yet unreleased version (1.9) which is compatible with both All-in-one SEO and Page Menu Editor. Fantastic!

    The combination of these three plug-ins goes a long way to making WordPress (pages) a workable, search engine optimized CMS.

    By Laurens on Sun, 28 December, 2008

  44. Laurens that's great news to hear, thanks for the update :)

    By Sarah on Sun, 28 December, 2008

  45. Hi, great plugin! Perfect for CMS projects.

    However, I just used it on a WP 2.6.3 site and if we use an apostrophe (') in a menu name, it gets escaped.

    eg [You're] becomes [You\'re]

    The escape character is actually displayed in the menu instead of escaping the apostrophe properly. Is this a bug in the plugin or a problem with WP?

    By Gyro on Tue, 20 January, 2009

  46. Hey, this is fixable, but it's actually a WordPress problem as it still uses add_slashes() instead of encoding the string propertly. I thought I'd added a fix for it as I spotted it myself, but clearly not. I'll try and get it added and updated later today :)

    By Sarah on Tue, 20 January, 2009

  47. Hey Sarah,

    This is an AWESOME Plugin, and should be a part of the standard wordpress install. SEO Benefit is massive, as in page linking is a crucial part of on-page optimisation. since installing this plugin, i've double my traffic levels.

    Cheers,

    Anthony.

    By Anthony Wakefield on Fri, 23 January, 2009

  48. Hi Anthony, cheers for the comment. Great to hear the benefit it's given your site :)

    By Sarah on Fri, 23 January, 2009

  49. Hi Sarah,

    Great plugin in different ways!
    Unfortunately there is an error in my installation… There is online one replacement on each site, the current page… all others shows the standard title… Subpages don't show the title even when they are active?!

    By Simon on Mon, 26 January, 2009

  50. ok, i found the problem…
    the access-key plugin (http://anthologyoi.com/wordpre.....-keys.html) makes trouble…

    maybe because of the accesskey-tag in the link?
    is there a workaround?

    By Simon on Tue, 27 January, 2009

  51. Hi Simon, it sounds to me like the two plugins are going to conflict as they're both manipulating the list of pages. Whether one can account for the other or not I don't know. I can look into accounting for that, but I need to ensure it doesn't mess up for people who don't use access keys, which of course is a larger percentage of users.

    However I'll have a look and see if it's possible.

    By Sarah on Tue, 27 January, 2009

  52. Thank you very much :-)

    By Simon on Wed, 28 January, 2009

  53. Hey there — just to let you know about a bug I bumped into: if there is HTML in the title, then the plugin simply ceases to work for that page.

    If the page is originally titled "Happiness" and I override the page title to be "WTFBBQ", I'll see "WTFBBQ". If I change the page title to be "Happiness", I'll see "Happiness". Other pages still seem to work okay.

    By Robert Fischer on Thu, 29 January, 2009

  54. Hi Robert. Adding HTML into your title is not really wise as it's designed to appear between your title tags (of course if you use a title plugin such as All in one SEO pack it's not really a problem). The plugin has to detect certain characters and the HTML will be disrupting the pattern matching.

    To be honest I would use the theme markup and CSS to manipulate the way headings look rather than putting the code in the title field. It's not designed to have it really and who knows how future versions of WordPress will treat it.

    By Sarah on Fri, 30 January, 2009

  55. This has now been updated with minor tweaks plus it strips added backslashes out, added by WordPress.

    By Sarah on Sat, 7 February, 2009

  56. I have been using this plugin for awhile and I LOVE it! However I on the site I am working on now it is working for every page except the Home page.

    You can see it here:
    http://www.visionforsuccess.biz/temp

    The only way Home shows up in the menu is if I leave home in the page title box. I want to remove it and just use your plugin to put Home in the menu.

    By Jodie on Thu, 19 February, 2009

  57. If you've set your front page to be a static front page it should still work providing you're using the wp_list_pages() function to list all the pages, including the home page. I've got this running on another site which has a static front page and it works fine.

    If you want me to take a look via a temporary WP admin account drop me a note via the contact form on this site with a login and I'll double check on it all for you :)

    By Sarah on Thu, 19 February, 2009

  58. Just saw this after commenting on another post

    will this plugin HIDE link title attributes completely?

    as in gone – none – nada – …?

    thanks,
    Tom

    By Tom on Sat, 7 March, 2009

  59. Hi Tom, yes if you don't set a title attribute then the attribute is removed completely.

    By Sarah on Sat, 7 March, 2009

  60. Thanks a lot for the plugin!

    By xyz on Mon, 9 March, 2009

  61. Does this not work in IE6? I see on this page that the 'Wordpress Plugins' button in the nav is appearing exactly as per the other buttons, while it works as it should in IE7, FF etc.

    By Daragh on Thu, 12 March, 2009

  62. The plugin makes changes before it goes to the browser so it's not browser dependent so no reason why it won't work in every browser going. I don't run IE6 so I couldn't really comment. All I can say is check your cache and examine the actual markup to see if it's doing the desired effect.

    By Sarah on Thu, 12 March, 2009

  63. Great plugin – thank you! Do you know of any breadcrumb plugins that will use the customized page titles generated by Page Menu Editor and/or what modifications would be necessary?

    By ElShaddai Edwards on Thu, 12 March, 2009

  64. Glad you like the plugin! I've posted a change to my breadcrumb function to use the page menu label over on the breadcrumb trail post at Blogging Tips

    By Sarah on Fri, 13 March, 2009

  65. Thanks! I'll go check it out…

    By ElShaddai Edwards on Fri, 13 March, 2009

  66. Lovely plugin. I want to know how to make the page id the title of the page instead of the ?p=2534

    By Rolando on Wed, 18 March, 2009

  67. Thanks Rolando. To change your URL I would use permalinks. Go to Settings -> Permalinks and then look at your options in there.

    By Sarah on Wed, 18 March, 2009

  68. Hi Sarah. Thank you for the useful plugin. Can I suggest that you add this:

    $menulabel = htmlspecialchars($menulabel);

    after line 25 in page-menu-editor.php to convert all special characters into appropriate HTML entities.

    Or maybe you left it out intentionally to allow users to add HTML inside labels?

    By Kaspars on Sun, 29 March, 2009

  69. OMG!! i have been dying to search for this plugin. I found something first but not working.. BUT your plugin ROCKS!! Simple yet working and effective!! THANK YOU!!!

    By Jane on Mon, 6 April, 2009

  70. Greetings! Great plugin. My question is this, I excluded two pages from the main nav bar via the statement wp_list_pages('exclude=44,45'), Whats the correct code statement to exclude those two pages from the plugin? I was looking through the code but I'm highly reluctant to just start chopping statements and hoping that something works.

    Any help will be greatly appreciated! Thanks!

    By Angela Poire on Mon, 6 April, 2009

  71. Angela, if you've excluded them via the wp_list_pages() function then they won't display. My plugin simply takes the output produced by this function and then modifies it. It won't insert the pages back in.

    By Sarah on Wed, 15 April, 2009

  72. This looks like a great plugin!

    Just starting out using Wordpress (shock horror I know considering I've developing sites for a number of years) and really missed this feature.

    A quick question – does this plugin work for Posts as well as pages?

    Plus is there a way to insert variables into the string boxes?

    Ta

    DM

    By DangerMouse on Sun, 19 April, 2009

  73. Hi Sarah

    Very exciting plugin.

    - However, I am using a modified 'magic-page-list' plugin which hooks into wp_list_pages() to wrap my link text with span tags to create resizable tabs with hover effects using css. And it seems your plug in only works when I deactivate this other one!

    Do you think there is a way that one plugin could modify the wp_list_pages() then the other could modify it further? Or will one plugin have to do both jobs?

    Thanks, Will.

    By Will on Wed, 22 April, 2009

  74. DM – The plugin is just for the Page Menu, typically because menu labels need to be short and page titles and headers should be longer and a bit more keyword rich. Posts are usually in a menu besides recent posts, and are naturally longer titles anyway.

    Will – The order in which the plugins run are just down to WordPress as far as I know. There may be a priority method but I've never tried it. I'm not sure what your other plugin does but on the brief info you've given, it sounds you could possibly do that without the need for the plugin. Every page menu list item has a unique ID so you can target each one individually, or you can target them all as a group. However it sounds like this plugin is running before the Menu Editor plugin, and this won't work then as it cannot match the standard syntax of the page menu.

    Your best option is either to see if the plugin editor for the magic-page-list plugin will integrate my code into theirs (as their plugin will most likely be a lot more involved than mine is), or look at whether you actually need their plugin to achieve what you want. If you want to let me know of a link to where you have this plugin running then I can take a look at what it's doing and give you some suggestions.

    By Sarah on Wed, 22 April, 2009

  75. Are there known issues with this plugin and WP 2.71? – I can't get it to work, but I'm not sure if its to do with the theme I'm using..

    Thanks
    Tim

    By TimB on Tue, 28 April, 2009

  76. There's no issues with 2.7.1 as I have this running on over 10 WordPress sites that are running that version. Two things to check are
    1. Does your theme use the wp_link_pages() template tag to list your pages?
    2. Do you have any other plugins that manipulate the page list output?

    No to the first or Yes to the second will be the most likely reason it's not working for you.

    By Sarah on Wed, 29 April, 2009

  77. What a brilliant plugin! Such a simple thing you would think would come standard in WordPress. Thanks heaps for you great work.

    By Craig on Wed, 29 April, 2009

  78. Simple but a must for SEO! Congratulations.

    Is there any way I can re-use the $menulabel string somewhere else in the page?
    I tried but it just returns nothing.

    Thanks.

    By sergio zambrano on Sat, 9 May, 2009

  79. Hi Sergio, glad you like the plugin. The $menulabel is local to the function, however if you want to grab the menu label for the specific page you're on then you can use the get_post_meta() function and use

    $menulabel = get_post_meta($post->ID, 'menulabel', true);

    By Sarah on Sun, 10 May, 2009

  80. Absolutely Brilliant!
    I tried Page-List_Plus first because of all the rave on Wordpress. However, it did not fix my problem! This however works absolutely perfect!

    Thank you!

    By Cydney on Fri, 5 June, 2009

  81. Hi there and thank you for creating this useful plugin!

    I found a little bug.

    Wordpress 2.8
    plugin is not working for this one:
    wp_list_pages('link_before=&link_after=')

    (all other plugins inactive)

    But if I change it to
    wp_list_pages('link_before=&link_after=')
    it works fine.

    Take care! /Anders

    By Ander Saugstrup on Tue, 23 June, 2009

  82. The H4 tags disappeared in the comment above – I am sure you will make sense of it anyhow! :-)

    By Ander Saugstrup on Tue, 23 June, 2009

  83. Hi Ander, I'm not sure what your code was, you'll need to encode it for it to display, however the plugin relies on your pages using the standard list settings, so if you choose not to have pages in a list then it won't work as it won't match each link.

    I do need to revisit it and also get it to work with the other page menu template tag, hopefully sometime soon.

    By Sarah on Tue, 23 June, 2009

  84. I also got an error when I tried to install it. My blog has Wordpress 2.8 How do you fix that bug?

    By Anon on Tue, 30 June, 2009

  85. Without knowing your error I can't really help. The plugin works with 2.8 (I've just not updated anything to state that yet) as I have it running on over 10 websites.

    I'll need to know what error you get to help :)

    By Sarah on Tue, 30 June, 2009

  86. Hello Sarah,

    I have been using your plugin for quite some time and I've always found it useful.

    I have installed on a website however and it does not seem to work even when I have disabled all other plugins.

    Here is the page in question:

    http://ivo-multimedia.com/wordpress2/

    Any ideas on how to get it to work?

    Best regards

    By Robin van rijn on Sat, 4 July, 2009

  87. Hello.
    This pluging isn't working with "All in One SEO Pack" plugin. (Version 1.6.1)
    Is there any way to fix it?
    Thank you.

    By Sergey on Sat, 11 July, 2009

  88. I'm at a loss. I've just completed my 3rd website using Wordpress with virtually identical installations and the Page Menu Editor plugin just doesn't work on my latest site. Any idea why this would be?

    Thanks
    John

    By John on Sun, 12 July, 2009

  89. Hi Sarah
    Forget my last post. I got it. It turns out I forgot to fill out the menu label in the All in One SEO Pack as well as the Page Menu Editor. Fantastic Plugin…many thanks.
    John

    By John on Sun, 12 July, 2009

  90. Hi Sarah
    Don't appear to be able to get it to work properly on this blog – could be interaction with anotehr plugin but I am trying to have the label as "Home" and can't get it to work.
    Happy to let you have access to admin panel if you want to look
    Regards
    Alec

    By Alec Tritton on Mon, 13 July, 2009

  91. Hi. I'm running WP 2.8.1 with Page menu editor 1.5,
    The latest update of All in One SEO Pack to version 1.6.3 breaks your plugin by preventing the menulabels to show up.
    I can see the custom field set up correctly but my menu labels don't change at all.
    If I deactivate All in One SEO Pack everithing goes back to normal.
    Does someone else have the same problem?

    Thank you for your work and good luck!

    EDIT: Just figured out this new version ef All in One SEO Pack has a menu label option that overrides the one set up in Page Menu Editor.

    By cannobbio on Tue, 14 July, 2009

  92. Sorry for the late reply to everyone, just moved house so have been lacking an internet connection. It looks like a recent update to the All in One SEO pack has clashed with my plugin, and the AIOS pack plugin actually deals with the menu label now anyway. Not sure if it does both.

    I'll have to upgrade the plugin on a CMS site of mine and see what it affects and whether my plugin is needed if you have the AIOS pack plugin.

    I'll update here once I know more :)

    By Sarah on Tue, 14 July, 2009

  93. FYI: I just upgraded All In One SEO Pack, version 1.6.3 in WP 2.8.1… oh wait…

    Oops, just notice the commenter ahead of me said the same thing. Please delete this if you like.

    I couldn't find any "menu" or "label" setting though and nothing seems to help in the SEO settings. Hmm…

    And thanks for the great plugin!

    By Cliff on Tue, 14 July, 2009

  94. I had the same problem after upgrading All in One SEO.

    There are no menu label settings in the SEO plugin settings page, but each page now has a menu option under the SEO section.

    So I just copied and pasted my menu label and title attribute fields into the right boxes on each page. Sorted.

    Looks like All in One SEO has the same functionality as this module now.

    By Jason on Wed, 15 July, 2009

  95. I've just checked this myself further to Jason's comment above, and I can confirm that the new All in One SEO Pack plugin now offers the exact same settings as the Page Menu Editor plugin to allow you to edit the menu label and title attribute of the link.

    Therefore if you are running the AIOSP plugin you no longer need the Page Menu Editor plugin. However, if you are not running the other plugin then mine will continue to run without a problem :) As I myself do not run the AIOSP plugin on blog sites (just CMS sites), development (when required) and support of the plugin will continue :)

    By Sarah on Wed, 15 July, 2009

  96. I'm actually not having success with either. Is your Blog up to the latest Wordpress build? After this plugin not working, I'm trying AIOSEO and finding that when I define menu label as "BLAHBLAH" it maintains the Wordpress page title.

    Anyone else having similar issues? I had both installed at the same time as well, altering the menu listing, to no avail, then removed all but the AISEO and that failed to work too.

    By David on Thu, 16 July, 2009

  97. Hi David, it sounds like your wp_list_pages() output it being affected by possibly your own settings or another plugin, and then the pattern matching needed will not work. If you can supply a link to your site or a copy of your page menu markup then I can check this for you.

    Running the two plugins together will no longer work, and I run versions of each on WP 2.8 sites so both work fine (apart, not together!).

    By Sarah on Thu, 16 July, 2009

  98. I just visited a clients blog today to upgrade wp to 2.8.1 and at the same time I tested disabling your plugin and using the newest version of all in one seo pack plugin instead to control the menu labels of the pages, and it worked fine.

    By Ander Saugstrup on Thu, 16 July, 2009

  99. Hi Ander, yes the AIOSP now incorporates my plugin's code. I've spoken to the developer, Michael, and he's also adding a migration script to save everyone who uses both plugins the time of copying the settings from one plugin options to the other.

    By Sarah on Thu, 16 July, 2009

  100. Is that migration script embedded in the AIOSP upgrader or something that you run separately? I don't seem to find any reference to it on the AIOSP support pages.

    By Laurens on Mon, 20 July, 2009

  101. Hi Laurens, as far as I'm aware it's not in there yet. I may write my own this weekend if Michael doesn't release an update, as I need it myself, so if I do I'll post it up here for anyone who wants to use it :)

    By Sarah on Mon, 20 July, 2009

  102. I found a conflict with classy wp_list_pages(http://code.dunae.ca/classy_wp_list_pages/) so I hacked the code of page-menu-editor to add id="'.strtolower($menulabel).'"
    on line 31 to allow me to style each menu item individually – works a treat. Great plugin otherwise – thanks.

    By Malcolm on Sat, 1 August, 2009

  103. Any news on the possibility of migrating setting between this plugiin and the All-in-One SEO plug-in?

    By Laurens on Fri, 14 August, 2009

  104. Hi Laurens, sorry for the delay, work has got me snowed under. I've just uploaded a new version of my plugin which checks for the All In One SEO Pack plugin and allows you to migrate your settings with it. Sorry for the delay on this (to you and everyone else). I had spoken to the other developer and hoped he would add the migration in himself but that doesn't appear to be the case so I've added the extra code required to do this.

    By Sarah on Fri, 21 August, 2009

  105. Thanks Sarah, much appreciated.

    Now I only need to convince the author of the Fold Page List plug-in to make his plug-in compatible with the All-In-One SEO settings. It worked fine combined with your plug-in but not with the migrated settings from the All-In-One SEO plugin.

    Upgrading WordPress and all its plug-ins can be such a hassle that I often wonder why I still get lured into doing it. Everything worked fine until I had this sudden urge to upgrade to the latest and greatest.

    By Laurens on Fri, 21 August, 2009

  106. Hi there, great plugin works great 99% of the time I've just found one problem with it.

    I want to wrap my anchor text in a span and the plugin doesn't seem to work when I use the link_before and link_after parameters for wp_list_pages

    Maybe I'm doing something wrong as I'm pretty new to wordpress.

    Any help would be much appreciated

    By Cian on Thu, 3 September, 2009

  107. Hi Cian, the script is written to detect a certain pattern of code to find the page ID, URL and anchor text, so if it doesn't follow this then it won't work. If you've changed the default list tags to something else then that will create a different pattern and it won't be able to match it.

    Unfortunately it's not a precise method of altering the page list so it just follows the default listing style which is suitable for most people. Is there any reason you cannot use the default list item tags?

    By Sarah on Mon, 14 September, 2009

  108. Hi Sarah, thanks for the response.
    Basically I needed the span so I could have curved corners using the css sliding doors technique, but it looks like I'm going to have to find some kind of workaround.

    Thanks for the reply, and great work on the plugin. Really is very useful. I can't believe wordpress doesn't have it as some kind of built in option. Just a shame about the span :)

    By Cian on Tue, 15 September, 2009

  109. I'm not sure about the CSS sliding doors technique but I know you can do curved corners with javascript or the jQuery curvy corner plugin, and don't need any extra spans. I've got this on another WP site with a standard WP page list.

    By Sarah on Wed, 16 September, 2009

  110. Ah right, I'll have to look into that, the plugin especially. I've got it doing what I want temporarily by using this small hack

    http://cssglobe.com/post/3910/.....enu-labels

    but it involves editing the /wp-includes/classes.php file which isn't exactly ideal. I'll have to look into that plugin.
    Thanks for the help!

    btw here are the corners in question:
    http://wordpress1.data-creative.co.uk/

    By Cian on Wed, 16 September, 2009

  111. I see them now. Yes the jQuery script can do what you need for that. You'd just give the li a:hover the relevant background colour, and the same for the active page (of course making the 'a' display block if it isn't already), then use the jquery script to round the top left and right corners. This is the script – http://blue-anvil.com/archives.....th-jquery/

    By Sarah on Wed, 16 September, 2009

  112. Sounds good! I'll check out the link now

    Thanks for all your help

    By Cian on Wed, 16 September, 2009

  113. I submitted a new enhancement ticket & patch adding 2 new filter hooks, "page_anchor_contents" and "page_anchor_attributes", that will make this kind of filtering a lot easier:

    http://core.trac.wordpress.org/ticket/10916

    You can vote for the ticket if you'd like to see it added (I'm hoping it gets into 2.9).

    Thanks for the plugin, Sarah!

    By sam on Tue, 6 October, 2009

  114. Hi Sara,

    I am customizing the my-dkret3 theme and it uses the wp-page-menu template tag to list the items in the menu. I see that your plugin uses the list-pages. So I assume your plugin won't work for me unless I change the author's template tags?

    Here's his snippet of code that formats the menu:

    Thanks for the info!
    ~Barb

    By Barb Peterson on Sun, 8 November, 2009

  115. Just what I was looking for! The plugin does not appear to work with ver 2.85 or possibly the Thesis theme. Bummer. Any insights?

    By Michael on Wed, 11 November, 2009

  116. Barb – no it's designed to work with wp_list_pages which the template tag that you're using is virtually identical to except it outputs a couple of extra tags. When I get a chance to work on the plugin I'll add in support for the new tag too but for now a quick change to the old tag shouldn't be too major on your site.

    Michael – the plugin works fine with the latest version of WordPress so it must be down to either a conflict with another plugin or whether your theme uses the wp_list_pages() function. Without seeing your site I can't suggest anything more specific.

    By Sarah on Sun, 15 November, 2009

  117. Hi

    Wishlist item:

    I've been using the plugin for a while on "ordinary" sites but I do have one issue with it when using WP as a CMS.

    Put simply one doesn't want editors and authors and others with access to page creation/editing functions to have access to any capability for changing page menu entries. The consequences in a large CMS with carefully structured menus and content could be a complete nightmare.

    I believe PME really _does_ need a settings entry which allows administrators to determine who can or cannot modify such entries, either using a role-based approach or on a named user basis, or better yet, both.

    Thanks for a good plugin Sarah, it really is much appreciated.

    ATB

    Robert

    By Robert Neuschul on Fri, 11 December, 2009

  118. Hi Robert, it's a good point, not something that occurred to me (mainly because it's only me who tends to maintain the sites that use it so access isn't an issue).

    The capabilities method will be the simplest to implement. I'll have a look at this when I can around Christmas.

    Cheers for the feedback :)

    By Sarah on Sun, 20 December, 2009

  119. Sarah,

    Thanks, much appreciated: but be warned, having spent a lot of the last week digging quite deeply into the source code implementation of capabilities/roles I'm not currently impressed: it's a nightmare of spaghetti code. Not well thought out for any context other than pure blogging, and poor at best even in blog mode.
    Several of the capability/role manager plugins fall foul of the problems. For example adding edit_user capability to any role lower than admin level 8 allows such users to promote themselves [or anyone else] to admin, which is insane. Capabilities should degrade gracefully as they're delegated downwards.

    All the best, have a good break.

    Robert

    By Robert Neuschul on Sun, 20 December, 2009

  120. Hi sarah, love the plugin – it's exactly what I was looking for.

    I was wondering – is it possible to disable the plugin for different page lists. Basically I've got a page list in my content area using Heading tags. And I want another list in the sidebar – listing the same pages but without the formatting…

    Any Help would be great :)

    By Sam Stephenson on Sat, 9 January, 2010

  121. Hi Sam, the plugin only filters wp_list_pages(), so if you use wp_page_menu() for the list you don't want formatted then I believe that the formatting shouldn't kick in, however, I was intending to add support in for the wp_page_menu() at some point, so I'll see if there's a way to allow you to turn off the changes by using a parameter.

    By Sarah on Sun, 10 January, 2010

  122. My apologies Sam, wp_page_menu() uses wp_list_pages() to create its list. I've looked into adding an additional parameter and not found a method yet. Another option for you would be to look at the get_pages() function and use that to do your non-formatted page list.

    By Sarah on Tue, 12 January, 2010

  123. Thanks for the help, I think I've figured a basic way out using css to re-format all the text and hide all the unwanted stuff. Thanks again though

    By Sam Stephenson on Wed, 13 January, 2010

  124. Hi-

    Do you know if it's compatible with the Headspace2 seo plugin? I'm getting a fatal error and am not sure if it's due to a headspace conflict or something else in my setup.

    Looks like a great plugin! Thanks

    By Matt on Thu, 21 January, 2010

  125. Hi Matt, as far as I'm aware no. I've never tried/used the Headspace2 SEO Plugin however. What is the fatal error you're getting?

    By Sarah on Thu, 21 January, 2010

  126. Very good plugin i enjoy this !

    By Mobi on Sun, 31 January, 2010

Trackbacks/Pingbacks

  1. New WordPress Plugin - Page Menu Editor :: Stuff by Sarah
  2. New WordPress CMS plugin :: AIS by Sarah
  3. Add meaningful tooltips to your WordPress menu links with Page Menu Editor - op111.net
  4. Graphic Design Blog » Wordpress Plugin to Change Website Link Names
  5. Using Wordpress As A Content Management System
  6. Glazefolio design blog » Blog Archive » Wordpress Plugin to Change Website Link Names
  7. WordPress Plugin: Page Menu Editor
  8. Outta Bounds – One BIG WordPress Site: A Case Study
  9. On-page SEO site link management - Wordpress Plugins of Note
  10. Finally Take Control of Your Wordpress Menu | THE DREAM IN ACTION
  11. Top 1000 WordPress Plugin Authors « Metode de promovare
  12. Trying out a new page list plugin for custom menus
  13. Take Complete Control Of Your WordPress Menu using plugins « My Graphic Friend's blog
  14. Eg?ls P?rups (parups.com) running a child theme of Portfolio Racer — WordPress, Design — Konstruktors Notes
  15. Mijn favoriete SEO plugins voor WordPress | Hiranthi's weblog - Weblog van een ondernemende vrouw
Leave a Comment

Please use your real name or nickname. Spam names will be changed.