WordPress.org

Ready to get started?Download WordPress

Forums

Page Navigation in Post Detail view (3 posts)

  1. Aldo
    Member
    Posted 3 years ago #

    Hello,

    I created a post type with an own slug path "/publications/magazine/".
    This path corresponds to pages I created before. The navigation reflects the current page when accessing "Publications" and "Magazine".
    As soon I access a specific magazine (based on post type) the navigation does not reflect where I am, as the detail is a post.
    How can I define a post type to be a child of a specific page as I can do that with pages?

    Thanks!
    Aldo

  2. vtxyzzy
    Member
    Posted 3 years ago #

    If you make your created post type 'hierarchical', then it will behave as a Page.

  3. Aldo
    Member
    Posted 3 years ago #

    Unfortunately in the main navigation (created with wp_nav_menu) the parent page is still not highlighted or set with the class "current_page_parent" or "current_page_ancestor".

    So accessing i.e. "/publications/magazine/issue-1", does not highlight the menu entry "Publications" in the main navigation or "Magazine" in the subnavigation.

    Any other idea?

Topic Closed

This topic has been closed to new replies.

About this Topic