1

In a plugin, i've created 3 Custom Post Types, for example:

  • Dogs
  • Cats
  • Goldfish

I've also created a "Pets" Top-level menu page using add_menu_pagewherein I'd like to add the 3 CPTs as submenu items.

Problem: I cant figure out how to add the Custom Post Types as Submenu Items.

The Codex states:

For Custom Post Types: add_submenu_page( 'edit.php?post_type=your_post_type', ... );

But I'm not getting it. Also, is this the best way to go about it?

Please advise.

1

Got it. This post demonstrates what I need.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.