The $catcount variable is a little code I added which displays a comma if there are more than one category. If we did not check for this, the code would simply add a comma every time, even if there was just one category listed.

If you want to use something else such as “and” instead of the ,”” comma, change the following line: