Support » Fixing WordPress » Problem list_cats optioncount

  • Hi there,

    I have a problem with the list_cats optioncount feature. I have two lists with categories, one for news per country and one for news per subject, with each excluding the cats in the other. This all works fine, but the optioncount doesn’t seem to work in the last list. For all posts it says (0), but when I click on them it does show the posts…

    Anyone have a solution?

    <h2>NEWS...</h2>
    <h2>...countries</h2>
    <ul class="categories">
    <?php list_cats(TRUE, '', 'name',
    'asc', '', TRUE, FALSE,
    TRUE, FALSE, TRUE,
    TRUE, FALSE, '', FALSE,
    '', '', '2,3,4,5,6,7,8,9,27,28,29,30',
    TRUE); ?>
    </ul>

    <h2>...subjects</h2>
    <ul class="categories">
    <?php list_cats(TRUE, '', 'name',
    'asc', '', TRUE, FALSE,
    TRUE, FALSE, TRUE,
    TRUE, FALSE, '', FALSE,
    '', '', '1,10,11,17,24,14,5',
    TRUE); ?>
    </ul>

  • The topic ‘Problem list_cats optioncount’ is closed to new replies.