• Resolved Attacking3rd

    (@attacking3rd)


    Hello,

    Can the archive and single view pages of a CPT show up in the sidebar navigation if there is not a Page for either of them?

    We are using a Genesis child theme (Education Pro) and created a CPT (Locations) with hierarchical set to true.

    We added a Post Type Archive as a child of a primary menu item:
    Appearance > Menus – Chose the CPT then added to menu as a child
    At this point in the menu we have:
    About Us (Page)
    – Locations (Post Type Archive)
    – Culture (Page)

    When we view the site in a browser About Us in the primary menu has two children in its drop down menu.

    When we go to About Us or Culture we see a sidebar menu that contains both About Us and Culture but not Locations. When we are on the Locations archive or single view pages there is no sidebar at all.

    We saw this: https://www.ads-software.com/support/topic/submenu-on-post/ but it is from 2 years ago and we are not sure it is still relevant.

    We saw this https://www.ads-software.com/support/topic/cant-get-it-to-display-on-cpt/ and it is exactly our problem but we are not already seeing the sidebar menu on the single page and the 4th paragraph in your answer seems to suggest we should. So perhaps some other issue is causing our problem?

    Another developer and I have looked over your plugin code and it seems like the plugin will only work with Pages. Although we both have been web developers for years, we are fairly new to WordPress and really new to Genesis, so we are not sure we understand all that your code is doing.

    Since we are not sure how/where to continue troubleshooting, we thought we should at least determine if what we are trying to do is even possible with your plugin. We are using ver 1.6.

    This fellow Georgetown resident appreciates your making so much of your code and knowledge available. Thanks!

    robertg

Viewing 1 replies (of 1 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    I apologize for the delay. The new www.ads-software.com forums no longer notify me of support messages.

    Yes, the plugin should work with all hierarchical post types.

    To test, I created a hierarchical post type (‘testimonials’), created a top level testimonial (Company A) and a subpage testimonial (Testimonial 1). I added the widget to the sidebar, and using the TwentyFifteen theme this is what the sidebar looks like when viewing either testimonial page: https://cl.ly/2f163g3i330V

Viewing 1 replies (of 1 total)
  • The topic ‘No menu on CPT Archive or Single view’ is closed to new replies.