• fredrik

    (@fredrik)


    On our blog we have multiple authors. We have some common categories and every author also have his/her own category for personal entrys. I’d like to sepparate these in the category listing. Like this:

    #Categories
    Cat 1
    Cat 2
    Cat 3

    #Personal Logs
    Person 1
    Person 2
    Person 3

    All the personal logs are set up as children of a category called “Personal Logs” (ID #4) that will always be empty.

    Using the Codex as a guide I’m using this code:

    #Categories
    <?php wp_list_cats('sort_column=name&optioncount=1&feed=RSS&children=0&exclude=4'); ?>

    #Personal Logs
    <?php wp_list_cats('sort_column=name&optioncount=1&child_of=4'); ?>

    Here are the problems.

    1. All the categories are still showing in the first case. Even though children are set to “0” and I’ve excluded the parent to all the personal logs (ID 4)

    2. The second query shows up all empty. Very strange. All categories have posts in them.

    Any ideas?

    Have a look at http://www.apt47.com/dev_blog if you’re not sure what I mean.

The topic ‘Problem with wp_list_cats’ is closed to new replies.