WordPress Hack – the_category() with NO separator
WordPress function the_category() offers an optional parameter to define a separator between each category link that is being returned. The problem is, if you don’t want to have any separator and you don’t use the parameter, so no separator is given, WordPress by default returns the links in an unordered list.
To solve this issue you can use this simple hack:
the_category('­');
This will return the categories with no visible separator at all!