• I’m using

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

    tag to show just parent pages on the sidebar. The subpage links are on the parent pages.

    Is there a tag I can use to show the number of subpages under a page? I’d only like to show the count if are any subpages.

    For example, say I have a page called “Instructions” with three subpages, called “Map,” “Contact Info,” and “Directory.” Currently on the front page, under Pages area in the sidebar, “Instructions” link is visible. What I’m looking for is to show “Instructions (3)”.

    Is this possible? I did a search under the terms page, count, subpages, etc., but couldn’t find any pertinent info.

    Any help is much appreciated and gratefully accepted.

Viewing 1 replies (of 1 total)
  • If you checked thewp_list_pages template tag and found no count parameter, the answer is no. And the count of the subpages isn’t something that is very important, in general, since the subpages are important but the count is something I’ve never seen requested.

    I’m sure there must be some code that will generate a count, but it’s not a normal function of the tag.

Viewing 1 replies (of 1 total)
  • The topic ‘How to show subpage count under Pages?’ is closed to new replies.