Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter johnrobe

    (@johnrobe)

    For an example, you can go to my blog, https://www.johnrobe.com.

    I have a page called “Recipes” and one recipe page called “Channa Masala”. What I would like, ideally, is to be able to use WordPress to create and manage the recipe pages, but not have them visible in the navigation of the blog itself. Some way to say either that I want a page to be invisible (from a non-admin page-listing perspective) or to somehow specify that child pages of a certain page not be visible from the index.

    Is this possible?

    I did a quick search and found…

    get_category_parents()

    Try calling that in your template and seeing if that works.

    Pages don’t have categories.
    You can exclude Pages from being listed in the navigation by using the “exclude” parameter (see: Template_Tags/wp_list_pages.)
    You can also “hide” children by using the depth parameter (setting it to 1 will show only the top level Pages).

    Thread Starter johnrobe

    (@johnrobe)

    The depth parameter was exactly what I was looking for — thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Is there a way to have some pages not visible?’ is closed to new replies.