Title: Automatic ul class post-categories generated
Last modified: August 20, 2016

---

# Automatic ul class post-categories generated

 *  [nr2012](https://wordpress.org/support/users/nr2012/)
 * (@nr2012)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/automatic-ul-class-post-categories-generated/)
 * Hi there
 * I’ve just found out that when I’m displaying the categories with
 * > <?php the_category(); ?>
 *  it creates an unordered list (ul) by default.
    I’m okay with that, but ain’t
   the default value for ul’s
 * > display: inline;
 * ??
 * Cause I had some trouble managing to get the different categories on one line.
   
   I now use the $separator-parameter to divide the categories with a comma and 
   now it displays allright. (one line only).
 * but even when I’m giving the ul class=”post-categories” which is generated automatically
   the value
    display: inline; It doesn’t display on one line.
 * Can somebody tell me why I had problems with all this?
 * Thx & Cheers

The topic ‘Automatic ul class post-categories generated’ is closed to new replies.

## Tags

 * [post categories](https://wordpress.org/support/topic-tag/post-categories/)
 * [the_category](https://wordpress.org/support/topic-tag/the_category/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [nr2012](https://wordpress.org/support/users/nr2012/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/automatic-ul-class-post-categories-generated/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
