• jdmcmillan

    (@jdmcmillan)


    Hi,
    Is there a way to list categories as a string instead of a list with the template tag list_cats (or wp_list_cats)?

    For example, to list categories like this:
    Category 1, Category 2, Category 3, etc.

    Instead of like this:
    Category 1
    Category 2
    Category 3

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • moshu

    (@moshu)

    Can’t you just do that with the stylesheet? As it is done in the posts’ meta?

    bdsays

    (@bdsays)

    I agree with moshu. Using stylesheets is a more elegant approach and let’s you switch themes easily.

    If you still want to go by not using stylesheets, you may have a look at the template-functions-category.php file in the wp-includes folder.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘List categories as a string instead of a list’ is closed to new replies.