• Resolved rjw

    (@rjw)


    I am new to wordpress, so wondering how you would go about doing two column categories – if someone knows a theme with it included, that would be alright.

    Example

    Cat 1 | Cat 2
    Cat 3 | Cat 4
    Cat 5 | Cat 6
    Cat 7 | Cat 8

    Thank you for any help, much appreciated.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Well, what you could do is this with CSS —

    ul#cats {
    width:200px;
    margin:0;
    padding:0;
    list-style-type:none;
    }

    ul#cats li {
    display:inline;
    }

    Then in your sidebar, or wherever you want the list to display you would put this:

    <ul id="nav">
    <?php wp_list_cats(); ?>
    </ul>

    The <li> elements for the cats will display next to eachother.

    Of course this is kinda hacky and you would have to adjust your width for the ul, and the padding for the left/right for the li elements so they aren’t right on top of eachother.

    **Note: I haven’t actually tried it, but something like that is what you will need.

    You may also want to start considering using CSS3, which spreads content in multiple columns. https://www.w3.org/TR/css3-multicol/ Obviously, CSS3 isn’t supported by browsers properly yet, but it’s something to look forward to.

    //edit: Firefox 1.5 will actually support this, just tried it. Have to modify the css call a little, but it’s very very cool. https://developer.mozilla.org/en/docs/CSS3_Columns

    Thread Starter rjw

    (@rjw)

    I was thinking maybe a better way to do it with PHP instead of using CSS, thanks I will just use CSS.

    And I think I will wait on CSS3 until at least 2 is fully supported =P

    waiting for full css2 support before looking at css3? Geee, where’s your sense of adventure? LOL.

    Seriously, there’s no arguing, this can’t be used on a live site, but it gives one hope.

    Thread Starter rjw

    (@rjw)

    Yeah, it will just take IE another 5 years to fully support IE3 lol.

    And another question, the main page is only showing posts from the default category, I want it to show all, I looked all through admin and didn’t see anything. I probably just missed something simple, so how do I get that to show all not just the default category?

    Oh yes…. and by then the rest of the known universe will be using something else ENTIRELY….

    Do you have posts in those other cats?

    Thread Starter rjw

    (@rjw)

    hhahaha.

    and yeah I do, thats how i first noticed i put a test post ina nother category and nothing showed up, maybe its because it is using that hemmingway as a start theme?

    Could be…. Hemingway’s different (well, he WAS!, but so is the theme….); I’ve not used it, and it’s entirely possible for that sort of display setup to be “theme-twitched”.

    What to do: reset the default in Presentation, and see what happens.

    Thread Starter rjw

    (@rjw)

    Alright, did that, and yep I see all categories on main page. Thanks for the help with both problems all ??

    Nice use of a Hitchhiker reference vkaryl ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘two columns categories’ is closed to new replies.