Support » Themes and Templates » exclude a page from the menu

  • Resolved caladan


    hi there,
    i try to exclude a page from the menu. since i have a custom made theme, i cant get the “exclude” option to work and diddnt find help by searching:

    the code is:

    	// content
    	if ( have_posts() ) while ( have_posts() ) : the_post();
    	// list sub pages
    	echo '<ul class="arrow">';
    	echo '</ul>';

    where can i fit in the “exclude=123” option?

    thanks for your help!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • wp_list_pages('title_li=&exclude=23&child_of='.get_the_id());

    mhm, i tryed this, but the page still appears in the menu.
    its a sidescrolling theme where i cant write articles, only create pages. could there be another part of code that needs to be changed?

    i have no idea, but it doesnt work like that.

    thanks esmi!

    Are you sure that you have the correct page id?

    ah, i got it. the page id was right, the page just used a wrong style sheet. it works now with the code above.

    thanks so much!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘exclude a page from the menu’ is closed to new replies.