Forums

Show # of Children in Parenthesis using wp_list_pages (1 post)

  1. tenglund4
    Member
    Posted 9 months ago #

    I am trying to show on a page all of the parent pages on my page with the number of children for each page in parentheses. Can someone try and help me out?

    Here is my current code:

    <?php  wp_list_pages('title_li=&depth=1&exclude=74,137,141,143, 206');  
    
      ?>

    I want it to look something like this:

    Parent Name (#of children)
    Parent Name (#of children)

    I want users to know how many pages will be in that parent.

    I have tried everything and searched everywhere. Please Help!

Reply

You must log in to post.

About this Topic