WordPress.org

Ready to get started?Download WordPress

Forums

wp_list_pages still showing child pages when depth set to 1 (2 posts)

  1. d6veteran
    Member
    Posted 4 years ago #

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

    That should, from my understanding, not show any child pages. However child pages are being displayed.

  2. MichaelH
    Member
    Posted 4 years ago #

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

    Your "depth=>1" is the problem.

Topic Closed

This topic has been closed to new replies.

About this Topic