• Resolved seravi

    (@seravi)


    According to this support thread, the codex, and my limited knowledge of PHP, I replaced the code for wp_list_pages with the following:

    <li id='pages'> <?php wp_list_pages('title_li='); ?>
    
    <ul>
    <?php
    wp_list_pages('exclude=6,15' ); ?>
    </ul>
    </li>

    and yet, the title “pages” is still being listed in my sidebar along with the pages I am trying to exclude from the list.

    Am I missing a step somewhere?

    http://www.onyoungchildren.com

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter seravi

    (@seravi)

    sorry, meant to include this in the earlier post:

    http://ww.wp.xz.cn/support/topic/112648?replies=5#post-586859

    and I hope you alse meant to put your code in between backticks – to not screw up the whole page 🙂

    [corrected]

    You left out the IMPORTANT detail: you are using the Pages widgets… no editing in the sidebar has any effect when using the widgets.

    Thread Starter seravi

    (@seravi)

    oh. good grief. I had no idea. well isn’t that a stinker.

    i guess i’ll have to find another solution.

    thanks!

    … can somebody please tell me what the solution to this is? I just added

    <div id="nav">
    	<ul>
    	<?php
    		wp_list_pages('exclude=18&title_li=');
    	?>
    	</ul>
    </div>

    to my index.php file, but page 18 does not get excluded… Pardon my ignorance, but what to do? Thanks for any help.

    i just started using word press and i have the same problem i cannot exclude some of the page i tried using the codes that were given above but my excluded pages are still there….is there something i need to do with the setting in the word press or is it that the exclude isnt working at all… anyway please help me..thank you

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘excluding pages from wp_list_pages’ is closed to new replies.