Hi,
I'm trying to customize my theme to only display categories in the postfooter IF the categories is NOT 'Uncategorized'(catid=1). The code I have so far is:
$postcategory .= '<span class="cat-links">';
if () {
if (is_single()) {
$postcategory .= __('This entry was posted in ', 'thematic') . get_the_category_list(', ');
$postcategory .= '</span>';
} elseif ( is_category() && $cats_meow = thematic_cats_meow(', ') ) { /* Returns categories other than the one queried */
$postcategory .= __('Also posted in ', 'thematic') . $cats_meow;
$postcategory .= '</span> ';
} else {
$postcategory .= __('Posted in ', 'thematic') . get_the_category_list(', ');
$postcategory .= '</span> ';
}
}
else {
$postcategory = '';
}
$postcategory = apply_filters('thematic_postfooter_postcategory',$postcategory);
(thanks to Dannydamnboy in This thread).
I wrapped the code in an if statement because I only want to display the $postcategory if the post has a category. However, I can't figure out what to put in the if brackets.
Any suggestions?