• I’d like to create a privacy statement on my blog with a WordPress page. I don’t want the page to appear in the navigation menu, but link to it separately in the footer. How can I create a wordpress page and not have it show up in the site navigation? I know I could manually code my navigation, but is there a different option? A plugin that excludes pages maybe? Thanks for any help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • You don’t need any plugin. Just read the documentation!
    Template_Tags/wp_list_pages

    Thread Starter kfordham281

    (@kfordham281)

    Thanks! I did a few searches on the codex but couldn’t find what I was looking for. The exclude function you linked to seems like it will work.

    I tried using this tag

    <?php wp_list_pages('depth=1&title_li=','exclude=67'); ?>

    but the page I was trying to exclude, still displayed. I guess I can’t combine stuff?

    The WordPress Forum is like a recipe with one exception. They’ll give you the ingredients list, but the won’t tell you how to assemble it.

    For assembly instructions, you’ve got two problems in your statement. One, you don’t have an ampersand (&) separating the title_li argument from the exclude argument. Second, you are using single quote around the whole argument list, but also using single quote inside the argument list. To be honest, I don’t know how WP deals with quoting in such a case. PHP in general is pretty flexible, maybe you just want double quotes:

    <?php wp_list_pages(“depth=1&title_li=’,’&exclude=67”); ?>

    Actually, you can combine arguments by using the ampersand with ALL arguments within a single set of single quotes like such….

    <?php wp_list_pages(‘depth=1&title_li=&exclude=67’); ?>

    Try it…it works.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Exclude page from nav’ is closed to new replies.