Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6895149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:52:19+00:00 2026-05-27T06:52:19+00:00

Made a custom post type, Events, great. Now I want to get a second

  • 0

Made a custom post type, “Events”, great. Now I want to get a second custom post type and nest its menu items with the existing Events items.

  1. No taxonomies allowed
  2. I know there’s great event plugins, this is just theoretical
  3. It’s gotta go INSIDE the “Events” menu, not above or below!

Should be straightforward… right? …guise?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:52:20+00:00Added an answer on May 27, 2026 at 6:52 am

    Check out http://codex.wordpress.org/Function_Reference/register_post_type and the bit about “show_in_menu”.

    You should be able to set it to something like:

    'show_in_menu' => 'edit.php?post_type=events'
    

    And it’ll show up in that menu. For more control, you can always play with the $menu and $submenu global variable. Add both post_types, do a print_r on $menu and $submenu to see where everything is, and then move some things around. It’ll probably look something like this:

    add_action('admin_menu', 'change_zee_menu');
    function change_zee_menu() {
        global $menu, $submenu;
        $submenu['edit.php?post_type=events'][13] = array(
                0   => 'All Sub Events',
                1   => 'edit_posts',
                2   => 'edit.php?post_type=sub_events'
        );
        $submenu['edit.php?post_type=events'][14] = array(
                0   => 'Add Sub Event',
                1   => 'edit_posts',
                2   => 'post-new.php?post_type=sub_events'
        );
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I've just made a custom post type for my wordpress theme named Products.
I have a custom made website and right now each time I want to
I'm having a serious problem with custom post types in Wordpress. I made a
I want to add a custom field on Add A New Post page. Like
I have made a custom UISwitch (from this post) . But the problem is,
I previously made a post here: How do I sort by a custom field
I am trying to set up a new custom post type and create a
I made a custom TObjectList descendant designed to hold subclasses of a base object
I made a custom control that is basically a multiline TextBox that allows input,
I made a custom task in my TFS build to examine my project's GlobalAssemblyInfo.cs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.