All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

wordpress wp_list_pages help

  • # October 4, 2009 at 12:22 am

    Is there a way to exclude child pages using

    < ?php wp_list_pages(); ?>


    # October 4, 2009 at 1:21 am

    If I’m not mistaken you would use the depth parameter, with a depth of 1:

    < ?php wp_list_pages('depth=1'); ?>

    You can see all the parameters in the WordPress Codex,

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

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed