WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] I only want to see 'Parent' pages in right sidebar,no 'child' (3 posts)

  1. Bam1
    Member
    Posted 4 years ago #

    I'm fairly new to this, but not totally in the dark. This might be a stupid question - but I do need your help;
    I am using veryplaintext. In the sidebar, under the pages heading ('contents') I only want to show the 'Parent' page. I have the 'Child' pages set up as links when you click the 'Parent' page. I don't want to show the 'child' pages on the sidebar at all. Is this possible?
    I appreciate any response, thanks.

  2. kz
    Member
    Posted 4 years ago #

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

  3. Bam1
    Member
    Posted 4 years ago #

    Thank you, kz... I thought some thing quite similar, but wasn't sure.

Topic Closed

This topic has been closed to new replies.

About this Topic