WordPress.org

Ready to get started?Download WordPress

Forums

Problem list_cats optioncount (1 post)

  1. Tijmen
    Member
    Posted 8 years ago #

    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>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.