treehouse : what would you like to learn today?
Web Design Web Development iOS Development

wordpress wp_list_pages help

  • Is there a way to exclude child pages using
    <?php wp_list_pages(); ?>
    ?
  • 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, http://codex.wordpress.org/Template_Tags/wp_list_pages.