WordPress.org

Ready to get started?Download WordPress

Forums

Page Menu Editor
[resolved] Page menu editor dont work wp v3.3.1 (8 posts)

  1. kplusplus
    Member
    Posted 2 years ago #

    page menu label doesnt effect on page

    http://wordpress.org/extend/plugins/page-menu-editor/

  2. Sarah Anderson
    Member
    Plugin Author

    Posted 2 years ago #

    Can you give me a bit more information and perhaps a link to your site so that I can see if there are any other factors which could influence it from not working.

    Thank you

  3. steinitz
    Member
    Posted 2 years ago #

    Hi Sarah,

    Perhaps kplusplus was having a similar problem to one I'm having:

    In WordPress versions prior to 3.3.1, the following returned the Page Menu Label:

    $menuName = get_post_meta ($the_page_id, 'menulabel', true);

    Now, since updating to 3.3.1, it returns nil;

    Cheers,

    Steve

  4. Sarah Anderson
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Steve,

    It's not down to the version of WordPress. The plugin code was rewritten and improved in November and the data storage method was changed to reduce record entries in your post meta table.

    If you want to get the menu label for a specific page ID you would need to use

    [code]$pgmenueditor = get_post_meta($the_page_id, 'dsa_pagemenueditor');
    $menu_label = stripslashes($pgmenueditor[0]['menu_label']);[/code]

    To get the title attribute you would then use

    [code]$title_attribute = stripslashes($pgmenueditor[0]['title_attribute']);[/code]

    hope that helps :)

    kplusplus - still don't know what problem you're having? I'm currently fixing one issue that's been highlighted which may or may not be the same as yours, just running a bit slow as I have a broken arm right now!

  5. steinitz
    Member
    Posted 2 years ago #

    Wow Sarah,

    "Hope that helps" - h*ll yes, does it ever, and it makes perfect sense. I'll try it in the morning. And, thanks for your quick reply.

    Thanks again for your useful plugin and for your generous support.

    All the best,

    Steve

  6. steinitz
    Member
    Posted 2 years ago #

    Sarah,

    Quick follow up - your code worked perfectly.

    Thanks again,

    Steve

  7. Sarah Anderson
    Member
    Plugin Author

    Posted 2 years ago #

    No problem, glad it worked for you :)

  8. mostafa_rogers2
    Member
    Posted 1 year ago #

    Hi dude .
    Is it work on New Version of WP 3.5 ?
    of course im using Persian WP .

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic