Grow your CSS skills. Land your dream job.

wordpress wp_list_pages help

  • # October 4, 2009 at 12:22 am

    Is there a way to exclude child pages using

    Code:
    < ?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:

    Code:
    < ?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.

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".