WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to find the ID numbers of my individual pages (6 posts)

  1. roxworx
    Member
    Posted 5 years ago #

    On my WP site, http://www.lc-norway.com, I have two levels of navigation. If you look at my site, you'll see "2006" to "2009" in the navigation sidebar, as a sub-level to the page "Resultater". Then, at a sub-level to "2008", there's a page named "19. april: Trøgstad, Østfold". I want this page, and all other pages at that sub-level, to be hidden from the navigation.

    I found this page with info on how to do this:

    http://codex.wordpress.org/Template_Tags/wp_list_pages#Exclude_Pages_from_List

    What it recommends is this:

    Exclude Pages from List

    Use the exclude parameter to hide certain Pages from the list to be generated by wp_list_pages.

      <?php wp_list_pages('exclude=17,38' ); ?>

    Now, I'm a WP newbie, so please bear with me. I understand that I need to change the code somewhere, but in which file? Also, how do I find the ID numbers of the pages that I want to "hide"? I can't find any page ID numbers anywhere in the Site Admin area.

  2. MichaelH
    Member
    Posted 5 years ago #

    If Edit->Pages, hover your mouse over the Title of the Page to see the Page ID in the browser status bar (bottom of screen in FireFox).

    There's also a plugin that does that if you are of the mind:
    http://wordpress.org/extend/plugins/reveal-ids-for-wp-admin-25/

  3. roxworx
    Member
    Posted 5 years ago #

    Excellent! Thank you! :-)

    Funny, though, that there isn't a way to see the ID numbers in Edit Pages.

    Now, my next question is, where do I go within the administration pages to edit the code <?php wp_list_pages('exclude=17,38' ); ?>

  4. roxworx
    Member
    Posted 5 years ago #

    OK, nevermind my last question. You answered it for me in another post.

    Thank you very much for your help!

  5. MichaelH
    Member
    Posted 5 years ago #

    Also new plugin that shows ID numbers in admin panels:
    http://wordpress.org/extend/plugins/simply-show-ids/

  6. muymalestado
    Member
    Posted 4 years ago #

    Well, thank everyone for this! A great time saving asset to the development process.

Topic Closed

This topic has been closed to new replies.

About this Topic