Ready to get started?Download WordPress


display all categories on one line (2 posts)

  1. chaaban
    Posted 7 years ago #

    Does anyone know how to display all categories on 1 line ?

    i tryed :

    - 1 -

    list_cats(TRUE, '', 'ID','asc', '',FALSE,FALSE,FALSE,FALSE,TRUE,FALSE,FALSE, '',FALSE, '', '', '',TRUE);

    this doesnt work , it put each on 1 line . (there is a br)

    - 2 -

    the_category(' ') , it will only show categories of the current post on 1 line ...

    any idea ?

  2. JeremyVisser
    Posted 7 years ago #

    What I do is leave the Categories in a UL list and apply the following CSS to the list:

    ul.category li {
    display: inline;

    It will transform the unordered vertical list into a horizontal (one line) list.

Topic Closed

This topic has been closed to new replies.

About this Topic