• Resolved sedonarecycles

    (@sedonarecycles)


    To preface, I am a beginner and I am not sure if this is even possible, so bear with me.

    I would like to create a sort of website within my website, http://www.sedonarecycles.org. Here’s what I envision: when you click on the “education” tab in the main menu bar (which is actually the “secondary” menu) I want the user to go to a page that looks exactly like the rest of the website but with a different main menu listing only the education program pages. The user would navigate through the education section using the main menu tabs and clicking on the Sedona Recycles logo in the header would take them back to the main homepage.

    Trying to figure out how to do this led me to custom post types. So, using your plugin, I created a custom post type called “education programs” and custom posts to look like pages named “tours,” “presentations,” waste audits,” and “lesson plans.” Is there a way to create the website within a website I envision that would have these custom posts as the menu items? And can the custom post type “education programs” be configured as a page so that when the user clicks on “education programs” on the homepage main menu (currently titled “education” until I get this figured out) and they are taken to my envisioned website with a website they see content on that page?

    I hope this makes sense.

    Thanks so much for your help.
    Meghan

    https://wordpress.org/plugins/custom-post-type-ui/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I’m not saying it’s not possible, but I’m not sure how I would handle this need, to be honest.

    While yes you did create the post types with our plugin, these edits and changes are actually past what the plugin covers. We handle the registration of the types and taxonomies, but we don’t handle anything with display and content creation.

    Thread Starter sedonarecycles

    (@sedonarecycles)

    Any suggestions for who to ask about this?

    Thanks.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Sadly I don’t have a list of people to refer to for help with custom work.

    Giving it some thought. I’d probably end up turning the “Education” page into a parent page and all the rest of the education-related content as child pages to it. Then, when it comes to the menu, simply create a 3rd menu in Appearance > Menu and have that 3rd one load when on either the “Education” page or child page of that one.

    So, for example, using the is_tree() function shown at https://wordpress.org/support/topic/check-if-current-page-is-child-or-grandchild-of-a-page?replies=7#post-1787093

    //Pretend the Education page ID is 5
    if ( is_tree( 5 ) ) {
        wp_nav_menu( ... ); //the 3rd "education menu parameters"
    } else {
        wp_nav_menu( ... ); //Whatever you have now.
    }

    I think this would get you pretty far along, and it ends up not even needing some custom post types.

    Thread Starter sedonarecycles

    (@sedonarecycles)

    Thanks so much for the advice! I’ll check all that out and see if I can make it work. I really appreciate your help.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Welcome.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘possible to create separate custom post menu bar’ is closed to new replies.