I am trying to implement a slider on my site but i cannot find out how to display the category for each post displayed. I want it to display over the thumbnail. is there a code i can enter to display category?
This function needs the post id as parameter and it will give you the top most category of the post, if you remove LIMIT, it will give you a list of all categories of the post. I am not sure whether you want achieve the same or not.