Check if a post is in specific category to show an icon

Add post_class() to the post container div: <div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>> <!– post markup here –> </div> …which will give you, among other classes: .category-{ID} .category-{slug} You can then target those classes via CSS to add category-specific icons.

Add html word before category

If you want to add “Tuppersex” text before each category name, you can do it by jquery jQuery(document).ready(function(){ var catList = jQuery(‘.cat_col li a’); catList.each(function(key, value){ var data = jQuery(this).text(); data=”Tuppersex “+data; jQuery(this).text(data); }); }); Code: http://jsbin.com/AJuJeQi/1/edit?html,js,output

Multiple parent categories

You may want to also consider using multiple taxonomies, not just one- categories. One taxonomy for location, another taxonomy for content type, then you won’t have duplication of sub-categories. see taxonomies in codex for more info.

Function to list posts from current post’s category fails in WP 3.8

I never found out what stopped the function from working with WP 3.8, but I found that this variant of it does work – and I have no idea why: <?php function list_posts_from_current_category() { if(is_single()){ $tempArray = get_the_category($post->ID); $FirstCatName = $tempArray[0]->slug; $this_post = get_the_ID(); $PostsPerPage = 5; query_posts(array(‘category_name’ => $FirstCatName, ‘post__not_in’ => array($this_post), ‘posts_per_page’ => … Read more