• Resolved velozmedia

    (@velozmedia)


    Hello all; rookie here with probably a very basic question. Any idea how i can post pages, but not have them automatically appear on my top menu? here’s the site: http://www.velozmedia.tv

    as you can see, the top menu is crowded with child pages.

    using TV.Elements theme

    Thanks much for your help!!
    M

Viewing 8 replies - 1 through 8 (of 8 total)
  • You can use the exclude=1 (where 1) is the page number. The wp_list_pages function is located in your header.php file.

    Also, i recommend reading about the wp_list_pages function 🙂

    Thread Starter velozmedia

    (@velozmedia)

    Thanks niladam! 🙂

    Now, here’s the ‘i sound super-dumb’ question…Where is the wp_list and header.php file?

    Im sorry! Im totally new to this.

    Thanks for your help!
    M

    In your theme’s directory (usually wp-content/themes/NAME OF YOUR THEME HERE) 🙂

    Thread Starter velozmedia

    (@velozmedia)

    Ah! Found it! But, then how do i assign a number to a page?

    Thread Starter velozmedia

    (@velozmedia)

    worked! OMG. Thanks so much for your help. I figured out the number thing. I am guessing it is auto assigned? Oh man. This is great. THanks so much!!

    Page numbers (post ids) are assigned automatically in sequence. Posts, Pages, revisions, and attachments all share the same table (i.e. wp_posts) and thus the same ID sequencing.

    For reference:
    How do I determine a Post, Page, Category, Tag, Link, Link Category, or User ID?

    niladam – THANK YOU so much for posting this.
    I have been fighting with the wp_page_menu and wp_list_pages functions in the includes/ directory to get this to work – unsuccessfully I might add!

    Not sure why it was not parsing properly, but it was three hours of my life I’ll never get back.

    Thanks a lot for pointing out the exclude parameter.

    Hi. I am a relative newbie as well. I understand the basics but not sure how I would do this with the following code…

    <div id=”menu”>

      <li class=”<?php if ( is_home()) { echo “current_page_item”; } ?>”>“>Home
      <?php wp_list_pages(‘title_li=&depth=1’); ?>

    </div><!– end menu –>

    I want to exclude page 481 (which currently is in draft). Thank you for your help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to not show a page on the top menu HELP!!!’ is closed to new replies.