• gleem

    (@gleem)


    I don’t understand why WP 1.5 lets you nest categories in parent categories, but then in the “categories” menu it displays them all inline, with no particular logic?

    Like if I make a category called “Pictures” and then a child category “Dogs” it should show this in the “categories” menu:

    Categories:
    ————–
    Category 1
    Category 2
    Category 3
    . . Category 3.1

    but instead it looks like this:
    Category 2
    Category 3.1
    Category 3
    Category 1

    you know what I mean?

Viewing 15 replies - 16 through 30 (of 33 total)
  • Thread Starter gleem

    (@gleem)

    yeah, I read that line, I didn’t think it was a solution cause:

    <?php wp_list_cats(exclude=2, 3, 4, 5, 6, 7, 8, 9, 10′);???>

    if I wanted to only show category id1 in my sidebar, so to make a complete list in my order I would simply have to tell it to exclude every number besides the one I wanted to display. Somehow I think that might much things up though since I’d have to make 10 of those lines to get 10 cat id’s out there?

    oh and it is new ??

    Thread Starter gleem

    (@gleem)

    oh, and redoing them that way (category delete, reenter) would work till I needed to add a new catgory down the road that I Wanted higher up in the list than the very bottom.

    Thread Starter gleem

    (@gleem)

    *bump for the morning crew*

    pezastic

    (@pezastic)

    From Podz on an unrelated thread:

    “Try adding spaces to their names.
    A category with a space before it’s name will display above a category without a space.
    The space is not shown when displayed on your blog.
    This way, you should be able to determine display order.”

    Alternatively, I think you’re going to have to re-order the MySQL database with something like phpMyAdmin.

    I’m still re-reading the first codex link presented here for a possible solution to my problem. There’s a lot to digest in that reference.

    moshu

    (@moshu)

    Pezastic, I think the space solution was working only in pre-1.5. versions.

    Lorelle, the problem is, no matter what the Codex says…
    for the sub-Pages WP puts around them another <ul><li> tag – so I can style them correctly (indent etc.), but for the sub-category doesn’t.
    In some earlier (beta?) versions there was an additional <ul class="cildren"><li> tag around the children (=sub) categories, but in my 1.5, called “latest” on the download page, whatever I do with the list_cats or wp_list_cats it will not put any additional ul and li around them.

    Thread Starter gleem

    (@gleem)

    yeah, spacing doesn’t work.

    back to the drawing board *bangs head on wall*

    Lorelle

    (@lorelle)

    Just to let you know, my “exclude categories” list had over 30 numbers in it. I’ve asked the developers to add an “include” reference in the next version.

    Thread Starter gleem

    (@gleem)

    that would be nice ehh?

    I’m contacting some programmers to see how much it will cost for them to build me a plugin to do this, maybe I’ll share it ??

    Root

    (@root)

    And maybe I am therefore right in saying ? that the style comp is being hosted ona beta version of 1.5 ? Because there is no doubt that the mark up being delivered by the php is different in the final as moshu points out.. So the CSS ul.children does not take effect. In short – a bork. ??

    Thread Starter gleem

    (@gleem)

    you lost me dude, was that haxor speak or something?

    pericat

    (@pericat)

    gleem, I’ve written a plugin that may be what you want. Explicit Category Sort. Download: https://pericat.ca/downloads/perisort.tar.gz

    Thread Starter gleem

    (@gleem)

    HOLY CRAP PERICAT!!! that’s exacto-freaking-ky what I’ve been looking for!!!!

    THANX!!!

    pericat

    (@pericat)

    Cool!

    pezastic

    (@pezastic)

    You know, I didn’t even want something like that until I read this thread. Now, I think I want to use it, too! You’re awesome, pericat!

    BTW, I’m still trying to absorb the info in that first link. The problem I am having is styling a category list. Not just any category list, but one where there are subs and sub-subs and the post numbers are after each category. What I want is a different background image and hover image on each level, with a block display.

    I can do that on a normal list, but I don’t know what to do when the post count is there, as the post count is not part of the category link. What is happening is that the post count is displaying outside of the styling, on a line beneath each link all by itself.

    pericat

    (@pericat)

    I’m a sucker for compliments. New version (now 1.31), same link. Will, if desired, include the post count as part of the link.

Viewing 15 replies - 16 through 30 (of 33 total)
  • The topic ‘Show Proper Categories with nesting?’ is closed to new replies.