WordPress.org

Support

Support » How-To and Troubleshooting » Custom post type and sub navigation

Custom post type and sub navigation

  • Hi all,

    I have a main navigation consisting of pages, each page has a number of subpages making up the sub navigation.

    I am using a common subnav.php include to display the sub nav for each page. The problem is I have a custom post type ‘recipes’ which is using the ‘single-recipes.php’ and Im unsure about how to display the subnav on this page.

    The structure is as follows:

    > Recipes & Ingredients
    >> Our Process
    >> Ingredients Used
    >> Highest Rated Recipes
    >>> Recipes Listing (single-recipes.php)

    So if the current page is ‘Recipes Listing‘ I need the Our Process, Ingredients Used and Highest Rated Recipes sub nav items to still display.

    Thanks for help with this.

  • The topic ‘Custom post type and sub navigation’ is closed to new replies.