• I am learning to work with php.

    I want to exclude post #8 (Test of exclude)in my test site at http://www.secondlifegolf.com.

    I can exclude it with this command in the sidebar file:
    <?php wp_list_pages('exclude=8' ); ?>

    Also in the sidebar is this command:
    <?php wp_list_pages('title_li=<h2>Pages</h2>'); ?>

    How do I combine the two so that I get a single instance of the Page list with “Page” in H2 and item 8 excluded?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Just for the record: you are not excluding a post but a Page! Big difference…

    <?php wp_list_pages('exclude=8&title_li=<h2>Pages</h2>'); ?>

    Thread Starter RussellSipe

    (@russellsipe)

    Yes, I “mispoke”. I DID mean a Page, not a Post. Thank you for your help.

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

The topic ‘Simple Syntax Question’ is closed to new replies.