• Hi!

    I have a “product” custom post type, it was initially displayed by default WordPress categories (after I tinkered with options to make it possible ;p).

    Collapsing Categories worked pretty rad, being manually placed in my sidebar, aside from the fact that post count was always 0, so I just disabled it without thinking what’s wrong, I didn’t need it anyway.

    Everything would be okay, BUT… I noticed that this plugin actually should display posts as sub-elements under the categories, in mine case it didn’t ;p it looks exactly like this:

    View post on imgur.com

    You can clearly see that the “Child Category” is expanded (it has ▼ image displayed), yet no posts under it are displayed. What is more, the post count still says 0, even though upon clicking that category, both Parent and Child have all the posts displayed normally on the right side (using archive.php template).

    I thought “hey, MAYBE it’s because I use hacked default category!! what if I make a custom TAXONOMY!?”.

    So I did – custom taxonomy named “products” and as such I displayed it by the plugin using collapsCat('taxonomy=products');

    It works exactly the same, it “expands”, but no posts shown, only sub-categories and no post count either. The posts on the right are shown normally. I can go to the admin page and clearly see that my taxonomy isn’t empty, yet for it to be seen I need to enable showEmptyCat=1

    Why is that? I’m not using any custom settings, just basic code:

    <?php
            echo "<ul class='collapsCatList'>\n";
                if (function_exists('collapsCat')) {
    collapsCat('showPostCount=0&showEmptyCat=1&expand=4&customExpand=▶&customCollapse=▼');
                } else {
                    wp_get_categories('hide_empty=0');
                }
            echo "</ul>\n";
    ?>

    I did not change any plugin files either – I have no idea what to do now…

    http://wordpress.org/plugins/collapsing-categories/

  • The topic ‘Collapsing Categories displays my custom taxonomy as empty.’ is closed to new replies.