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

Loops in category description

What you want to do is to group fruits by color. In WordPress term appropriate mechanism for that is taxonomy (categories and tags are examples of taxonomy). I would create a custom taxonomy “fruit color” where terms would be individual colors and assigned to fruits. Then your display logic would be to: retrieve all fruit … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)