Instantly share code, notes, and snippets.
Use single_cat_title() instead wp_title(). The first is more secure than wp_title(). The whole of SEO plugins can change the title, and use the wp_title() method to do this. If title!=category name don't causes an error, but you can see all of the categories of your blog.