WordPress.org

Ready to get started?Download WordPress

Forums

Excluding Pages-- advanced issue (3 posts)

  1. AmyCelona
    Member
    Posted 5 years ago #

    I have pages that I want to not appear on the Navigation bar BUT I only want the Top Level pages to appear as well... I don't know how to code that...

    http://codex.wordpress.org/wp_list_pages

    I've been all over this page and don't see how to code the list pages that 1) is only top level pages 2) excludes certain page numbers AND
    just to make it fun... I use Permalinks and there are no page numbers anymore.

    To find the page number, I tried a suggestion to hover over the page name in 'Manage' >Pages and the number shown at the bottom left status area refers to a post number it looks like, AND that number doesn't work anyway.

    Any help?

  2. moshu
    Member
    Posted 5 years ago #

    1. depth paramater (read the Docs you linked to)

    2. the exclude parameter works by ID (just as you tried it)

    Bonus: for seeing the IDs, install this plugin:
    http://wordpress.org/extend/plugins/reveal-ids-for-wp-admin-25/

  3. AmyCelona
    Member
    Posted 5 years ago #

    Thank you for your reply, and I have tried the following:

    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li= exclude=185,328' ); ?>

    I got the Page ID#'s from the plug in you suggested (thank you!) and believe that I have the parameters right and still the pages show up in Firefox. In Firefox you can see http://www.stampingjo.com that two pages show up "Testimonials" and "Class" and they are the ones I am trying to supress.

    Any suggestions?

Topic Closed

This topic has been closed to new replies.

About this Topic