Skip to main content
Proper code and sample link formatting.
Source Link
brasofilo
  • 22.1k
  • 8
  • 69
  • 264

Link new How to link a Custom Post Type submenu to a Nextgen Gallery - Add Gallery page?

I've created a custom posts top level menu item but I would like to have a submenu under that linking to the Add Gallery page of Nextgen, as the client wants all their functionality bundled up under one top level menu item.

So far I'm doing : add_submenu_page( 'edit.php?post_type=events', 'Add Gallery', 'Add Gallery', 'administrator', 'nggallery-add-gallery', 'event_add_gallery');

add_submenu_page( 
    'edit.php?post_type=events', 
    'Add Gallery', 
    'Add Gallery', 
    'administrator', 
    'nggallery-add-gallery', 
    'event_add_gallery'
);

But the link looks like  : http://example.com/wp-admin/edit.php?post_type=events&page=nggallery-add-gallery

http://example.com/wp-admin/edit.php?post_type=events&page=nggallery-add-gallery

Is there any way to achieve this?

Thanks!

Link new submenu to Nextgen Gallery - Add Gallery page

I've created a custom posts top level menu item but I would like to have a submenu under that linking to the Add Gallery page of Nextgen, as the client wants all their functionality bundled up under one top level menu item.

So far I'm doing : add_submenu_page( 'edit.php?post_type=events', 'Add Gallery', 'Add Gallery', 'administrator', 'nggallery-add-gallery', 'event_add_gallery');

But the link looks like  : http://example.com/wp-admin/edit.php?post_type=events&page=nggallery-add-gallery

Is there any way to achieve this?

Thanks!

How to link a Custom Post Type submenu to a Nextgen Gallery page?

I've created a custom posts top level menu item but I would like to have a submenu under that linking to the Add Gallery page of Nextgen, as the client wants all their functionality bundled up under one top level menu item.

So far I'm doing :

add_submenu_page( 
    'edit.php?post_type=events', 
    'Add Gallery', 
    'Add Gallery', 
    'administrator', 
    'nggallery-add-gallery', 
    'event_add_gallery'
);

But the link looks like:

http://example.com/wp-admin/edit.php?post_type=events&page=nggallery-add-gallery

Is there any way to achieve this?

Source Link
uguMark
  • 143
  • 3

Link new submenu to Nextgen Gallery - Add Gallery page

I've created a custom posts top level menu item but I would like to have a submenu under that linking to the Add Gallery page of Nextgen, as the client wants all their functionality bundled up under one top level menu item.

So far I'm doing : add_submenu_page( 'edit.php?post_type=events', 'Add Gallery', 'Add Gallery', 'administrator', 'nggallery-add-gallery', 'event_add_gallery');

But the link looks like : http://example.com/wp-admin/edit.php?post_type=events&page=nggallery-add-gallery

Is there any way to achieve this?

Thanks!