• Resolved almahmud

    (@almahmudbd)


    I have a suggestion. You can put the “Term order” menu as a submenu under Settings or Tools. Since such tweaks do not need to be done every day, it is okay if it is not always in front of your eyes.

    thanks for this nice plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi almahmudbd,

    I understand the question and agree somewhat.

    However, the admin-menu in WordPress does not have sub-submenu’s. I just tried to place it under Tools, the main menu item works fine. If you then choose a term to sort, it will lose the menu position. I don’t know if that will confuse people.

    What do you think?
    I will let the idea rest for a few days and see if I warm up to the idea.

    To see what I mean, you could try it yourself.
    Remove this line with add_menu_page:
    https://plugins.trac.www.ads-software.com/browser/custom-taxonomy-order-ne/tags/3.4.4/admin-customtaxorder.php#L40

    Then add this line instead:
    add_submenu_page('tools.php', esc_html__('Term Order', 'custom-taxonomy-order-ne'), esc_html__('Term Order', 'custom-taxonomy-order-ne'), $custom_cap, 'customtaxorder', 'customtaxorder_subpage');

    Thread Starter almahmud

    (@almahmudbd)

    Yes, I changed the code and saw the results. It was as I had expected.

    I have noticed before that if one puts something under Tools or Settings, one cannot create a submenu within it. This is a limitation of WordPress, as it does not allow submenus under submenus.

    However, since the page that comes up when one enters ‘Term order’ can be used for navigating in features of the plugin, there is no problem in keeping it in Tools.

    • This reply was modified 1 year ago by almahmud.
    • This reply was modified 1 year ago by almahmud.
    Plugin Author Marcel Pol

    (@mpol)

    Thank you.

    And yes, I think it’s a good thing to move it there.

    I am thinking of adding the CSS classes to the menu-item to have the menu open also on subpages. I am not sure if it is considered hacky (doin it wrong) or if it would be okay. The li element for Tools just needs to have ‘wp-has-current-submenu wp-menu-open’ added. What do you think?

    Thread Starter almahmud

    (@almahmudbd)

    I agree that it is a good idea to keep the menu open on subpages. This will make it easier for users to find the menu item they need, even if they are on a subpage.

    I don’t think this is hacky, as it doesn’t violate the principles of WordPress. It is just a small CSS change that doesn’t change the functionality of the menu.

    I hope this is helpful!

    Plugin Author Marcel Pol

    (@mpol)

    Thank you. I am just a single person, some feedback is very welcome.

    I just tagged 4.0.0, it should work as it’s supposed to now.

    Regards, Marcel

    Thread Starter almahmud

    (@almahmudbd)

    thanks a lot.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘I have a suggestion’ is closed to new replies.