Viewing 3 replies - 1 through 3 (of 3 total)
  • I pulled this text from the codex. It will include the title ‘pages’ still so if you don’t want that remove ‘pages’ from the code.

    ‘<?php wp_list_pages(‘include=7,13,26,35&title_li=<h2>’ . __(‘Pages’) . ‘</h2>’ ); ?>’

    you need to delete the current wp_list_pages and replace it with that. Make sure you adjust the pages you want to exclude.

    <?php wp_list_pages('title_li=' . __('Pages:')); ?>
    This is your current code for listing pages. Replace it with:
    <?php wp_list_pages('exclude=20,311&title_li=' . __('Pages:')); ?>

    Thread Starter pumpkin2

    (@pumpkin2)

    curtismchale and muthukswamy,

    thank you very much guys.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to exclude certain pages’ is closed to new replies.