Forums

[resolved] How can I exclude pages (7 posts)

  1. fs_tigre
    Member
    Posted 2 years ago #

    Hi,

    I put my static pages in an unorder list but I would like to be able to exclude some of these pages, in other word I would like to be able to create 6 pages and to show only 5 the other one wil be linked from a static link on the page.

    Can someone be so kind and show me how to do this?

    <?php wp_list_pages("title_li=");?>

    Thanks

  2. @mercime
    Member
    Posted 2 years ago #

    <?php wp_list_pages('exclude=17,38,263,6436&title_li=' ); ?>
    whereby 17, 38, 263 an 6436 are the page ID's

  3. alchymyth
    The Sweeper
    Posted 2 years ago #

  4. fs_tigre
    Member
    Posted 2 years ago #

    First of all thank you very much for your replies.

    This is what I have done and it worked.

    <?php wp_list_pages("title_li=&exclude= 107,109");?>

    Thanks a lot!

  5. @mercime
    Member
    Posted 2 years ago #

    Great. Don't forget to click this thread as "Resolved"

  6. Steffen Jørgensen
    Member
    Posted 2 years ago #

    Maby you would do it the Include-way instead.
    That way you can create as many pages as you like, but still only include the pages you wish.

    <?php wp_list_pages("title_li=&include= 1,2,3,4,5");?>

  7. StevenCashman009
    Member
    Posted 2 years ago #

    for sure pages require more features to be added.

Topic Closed

This topic has been closed to new replies.

About this Topic