I need to display some HTML only if the post being displayed has a category – not a specific category, just any category at all.
I tried if (!is_empty(get_the_category($post->ID)))
, but for some reason this isn’t working. Has anone else had the same issue?