• Resolved Krzysztof Planeta

    (@chrisplaneta)


    Hi Kyle,

    I’m trying to rearange admin menu however when I have your plugin active I have big problems with “Pages” link and submenus.

    It seems that the usual code stopped working and I cannot target the Pages menu any longer.

    For example the code below no longer works:
    add_submenu_page( ‘edit.php?post_type=page’, ‘Media’, ‘Media’, ‘moderate_comments’, ‘upload.php’);

    I’m trying to move Pages menu to first position in the menu and add in submenu Uploads menu (upload.php – it makes sense in my setup) however whatever I’m trying to do I cannot get any results. After print_r $menu and $submenu I’m getting some very weird data.

    When I print_r $menu I see that position 20 in array is held by “Pages” with url “nestedpages” and when I print_r $submenu I see that the edit.php?post_type=page is intact and [nestedpages] has some additional array with position 50 and exact url to edit page.

    What’s going on?

    Help would be greatly appreciated.

    Have a nice day,
    Chris

    https://ww.wp.xz.cn/plugins/wp-nested-pages/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Krzysztof Planeta

    (@chrisplaneta)

    Ah. I’ve found an error. I put the wrong capability and the item didn’t display. Topic closed.

    Thread Starter Krzysztof Planeta

    (@chrisplaneta)

    Topic reopned. Even after using the right code nothing works. I cannot do a thing with nestedpages menu position nor can I add new elements to submenu.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with rearanging WP Admin Menu with Nested Pages’ is closed to new replies.