Support » Fixing WordPress » Removing Privacy Page From Top Menu

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hi,

    You have to exclude privacy page from navigation list.

    wp_list_pages('exclude=32') // 32 is privacy page id in and 67 in

    Mostly this function is called in header.php file of your theme.

    To learn more about wp_list_pages() function

    Thanks a lot both!

    I just checked and the Plugin would not be suitable because it gives you the option of including a page in all menus or no menus.

    I would still want the Privacy page on the bottom menu, but not on the top.


    I just tried to put that code in and it made my site disappear.

    Parse error or something.

    So I put the code back how it was.

    The existing code is:
    <?php wp_list_pages('title_li='); ?>

    You gave me:

    I tried about 8 different combinations and they all botched it up.

    I replaced the (‘title_li=’) with the (‘exclude=32’) and that messed up.

    I added one to the other in the same brackets – that was what caused the site to disappear.

    I added it on the end and the code then showed in my header.

    Please tell me exactly where to put the code.


    Even if I replace the whole line with:

    <?php wp_list_pages('exclude=32'); ?>

    it removes the privacy page from the top but the other buttons are botched up.

    Does anyone know?


    still not resolved

    does anyone know?


    So leave your original command intact but add ‘exclude=32’
    So if the existing code is
    <?php wp_list_pages('title_li='); ?>
    the new code would be:
    `<?php wp_list_pages(‘exclude=32&title_li=’); ?>

    Thank you so much!

    The ‘&’ made all the difference.

    I’ve kept a copy of that code for next time.

    Yeah, these little things &^%^&**

    Just one last question:

    How did know that the Privacy page on my two sites was 32 and 67?

    Because after doing a search to find page IDs, I was told to hover over the links to see the numbers, but that doesn’t happen with mine as I changed the permalinks.

    I also couldn’t find them in the code?

    So I’m stumped!


    I changed the permalinks on my site too, but in Admin/Edit/Pages if you hover over the page title, it shows the ID in the bottom line of the browser screen.
    Another way is using Firefox with the Addon Firebug. You can then point out area’s on your site and get great info over the used css for that piece and, pointing on a link, it shows the xhtml code with the page ID.
    So thats my way; maybe has a better one.

    Thank you henkholland,

    you have been very helpful!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Removing Privacy Page From Top Menu’ is closed to new replies.