I'm pretty new to PHP and I'm having some trouble getting something to work properly. My website has a static home page, and several categories of posts. At the top of every page I display the category name with this code:
<div class="header3"><?php the_category(', '); ?></div>
This works just fine for all of the categories. However, I do not want it to display the words "Uncategorized". I can't seem to get the syntax of the If statement correct, but basically what I want is to display the name as long as the category is NOT "Uncategorized".
Can someone please help me with this simple PHP If statement? I'd really appreciate it!