• I would like to know if it’s possible to duplicate a menu item in the WordPress admin menu.

    I’m using a theme for artists and it only has one portfolio. I have a client that runs a tattoo shop and art studio and they really like this theme. It’s called WP-ArtShow.

    I’ve tried their support but they answered with ‘Sorry, this theme only has one portfolio’.

    I’ve been through many pages in here looking for any info on trying to duplicate the menu item (knowing it will have to be named a little different for each new ‘portfolio’ that is added).

    Can anyone tell me how to get this in place?

    I have built sites since 1998 and do work with code as well as WordPress so I have a ‘little’ experience.

    Thanks for any help,

    Ernie Hodge

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    A very hacky way would be to replicate elements in the global $menu and $submenu arrays. Of course besides the label, you would need to alter the target and ensure the target is a valid page.

    You’d be much better off simply doing it right and call add_menu_page() and add_submenu_page() anew. You could copy the theme’s calls to the same functions, altering as needed for different label and target page.

    Thread Starter ehodge

    (@ehodge)

    That’s kind of what I thought should be done (the better way) so I guess I have to learn how to do that.

    I have been reading up on that so time to go to work.

    Thank you for the advice.

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

The topic ‘Duplicate a menu item in admin menu’ is closed to new replies.