Support » Fixing WordPress » (wp_)list_cats children not indented

  • Sorry to be a bother, but I have tried just about every combination of variables for both list_cats and wp_list_cats, but cannot for the life of me get the children to show up as indented, hierarchically. Is it a matter of whether you use the
    unordered list option? I’ve tried that both ways…:
    This way, hoping that the defaults would work:
    <?php wp_list_cats(‘sort_column=name&optioncount=1’); ?>
    This way, because they didn’t
    <?php wp_list_cats(‘sort_column=name&optioncount=1&children=1&hierarchical=1’); ?>
    And adding, subtracting and changing other variables like list, hide_empty and sort_column in the hopes that the answer to my problem was a simple yet unknown incompatability in my particular combination of variables…

    I am using the most recent build (having updated, hoping that perhaps that would fix the problem).

    I would be sooo grateful for any help I can get.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hey Kristin,

    I am on the 01/31/05 nightly and it is being indented for me ( But then again I am using the wp-exec plugin as a wrapper for wp_list_cats.

    But try this:

    <?php wp_list_cats(); ?>

    This will take all the default variables… which includes indenting children. Let me know if that works. Thanks.


    Wow, Navid, thanks! I tried it and it half works:
    Now the parents are indented and the children “outdented” –
    the opposite of the outline-like structure it should be.
    Do I need to use the wrapper, too?
    Any ideas? Want a screen capture? Thank you again…

    Oh, and the half-working version is in IE, while FireFox has consistantly shown them as a straight, indentless list. It shows yours prettily enough, though. I just tried your plugin, but am having no luck there, either. What a problem child I am. 🙂

    A screen capture and/or a link would be ideal. But in the meantime, and I should have said this earlier… are you enclosing it in <ul>?

    As in:

    <?php wp_list_cats(); ?>

    If you’re using my wp-exec plugin in a post or page (not inside a .php) you would include the following line:

    <exec type="categories" />

    To anyone who is reading this, Navid is tremendously helpful and patient. 🙂 Thank you, Navid. In a moment of rare clarity however, I figured out my own problem, and resolve hereforth to always check my css file before posting questions that may even remotely have anything to do with style…. 🙂

    Haha. Oh Kristin, whenever these sort of things happen to me I just calmly repeat “at least its working now. at least its working now.” And trust me, they happen more often then I’d like to admit.

    I am glad it works! And thanks for the kind comments =)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘(wp_)list_cats children not indented’ is closed to new replies.