• vladi

    (@vladi)


    I have setup a category called “brands” (ID 28) and several subcategories X1, X2, X3, …, Xn.

    I’ve edited a few posts on my blog to be added to those subcategories and in the admin area, under [Manage -> Categories], the # of Posts has been registered.

    However, when I run

    <?php wp_list_cats(‘child_of=28&optioncount=1’); ?>

    the resulting lists is empty. Calling

    <?php wp_list_cats(‘child_of=28&hide_empty=0&optioncount=1’); ?>

    revealed that the subcategories are all believed to be empty.

    Is this a known bug? Any fix? Or do I do something wrong?

Viewing 1 replies (of 1 total)
  • Thread Starter vladi

    (@vladi)

    Apparently, I can not call the wp_list_cats function twice. Bummer. When called once, the postcount is accurate, if called twice… it’s not. Any fix to this? ??

Viewing 1 replies (of 1 total)
  • The topic ‘Subcategory postcount not registered?’ is closed to new replies.