Here is a WordPress snippet which excludes posts from uncategorized category.
<?php /* // WP hide posts from category 'uncategorized' */ foreach((get_the_category()) as $category) { if ($category->cat_name != 'uncategorized') { echo '<a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> '; } } ?> |