Categories seperated by comma (2 posts)

  1. rondelw
    Posted 8 years ago #

    hello...I have a review site that I'm trying to incorporate just the 26 letters of the alphabet as categories. The letters are my first 26 categories so I used the exclude feature to exclude everything but the alphabet letters to show up under this heading in my sidebar. What I want to do is make it so they're on the same line or next to each other so the letters stack up horizontal instead of vertical. I don't see a page break in the code. Does anyone know how to resolve this?

    instead of:


    as categories, I want:

    a, b, c, d, e,

    Here's the code:

    <h4>reviews by <span>Site Name</span></h4>
    <ul class="links">
    <?php wp_list_cats('sort_column=name&optioncount=1&exclude=27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46'); ?>

    thank you

  2. moshu
    Posted 8 years ago #

    That's usually a simple styling issue - in the CSS file you can define how do you want your list to be displayed.
    As I am sure you've read in the Codex, the template tag displays a list: http://codex.wordpress.org/Template_Tags/wp_list_cats

    May I suggest you take a look at this plugin:

Topic Closed

This topic has been closed to new replies.

About this Topic