The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
3answers
772 views

Display the deepest child category from Category X (in loop)

I have a number of top-level categories including "News" and "Sport". They each have multiple levels of child categories as shown below. News Australia NSW Sydney Sports Cycling Road ...
2
votes
1answer
327 views

How can I get archives for specific category without category_base in the url?

I'm using this code to get archives for a specific category: function extend_date_archives_add_rewrite_rules($wp_rewrite){ $rules = array(); $structures = array( ...
0
votes
1answer
34 views

Anchor tag generates blank href attribute using echo esc_url( )

Following is my categories page. It's listing the all categories in the page. But when <a href> gets blank value here. see the attached screen shot. Why href is blank here li><a ...
0
votes
1answer
103 views

Display post category in foreach loop with category link

I have the following code to show current author post lists with post thumbnail, post title, post date and post category. function my_get_display_author_posts() { global $authordata, $post; ...
0
votes
1answer
151 views

Link Back to Parent Category - Woocommerce

I´m using woocommerce and a custom post type=product and taxonomy=product_cat. I need a link back to parent category on every single product and category pages. Already read several posts in the web ...
0
votes
1answer
72 views

How to Highlight current category on category and single page template?

On Wp Forums, I found a code that shows categories with images and it works very well. But I couldn't figure out how to highlight current category on category.php and single.php Here is the code that ...
0
votes
1answer
35 views

Show post if in category

I've searched a lot for options like has_category, in_category, get_the_category, but I couldn't make them work Here's my pastebin http://pastebin.com/Zi7auvtv I want this code to run only if the ...
0
votes
1answer
41 views

How to get tags and categories?

I used the following code to get tags from the post and then simply echo them: $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo $tag->name . ', ';} ...
0
votes
1answer
178 views

Display recent posts from the same category as current post in sidebar

I'm using a modified version of Twenty Twelve and I'm trying to display recent posts from the same category as the current post (except the current post) in the sidebar. I started this way but ...
0
votes
1answer
178 views

Show single Child Category on Custom Post

Am hoping someone can help me pull out a single custom category name and show it on my custom post page. I've created a new custom post type 'Itinerary' as well as some new custom categories (terms): ...
-1
votes
1answer
60 views

Print child category slug nicename

I want to print (display) the child category slug, so I can use it in a dynamic url, on categories pages. So If I am on the category www.example.com/category/main-category/child-category Example: ...
-1
votes
1answer
48 views

How to display my categories in a list (to a post, not the sidebar)?

i want to display my categories to a post like a list. i have this (parent- and child-) categories: - Sports - Football - Basketball - Toys - Dolls - Lego - Books for example one ...
1
vote
0answers
188 views

List only child categories within posts

I am using the_category() to display categories in my posts that are also filed in child-categories. Unfortunately this also displays the parent category which i would love to hide. Is there a way to ...
0
votes
0answers
12 views

Order categories thumbnails?

I have a video portal website and I want to show subcategory names under each video thumbnail. The code I use is this one: <?php $category = get_the_category(); echo $category[0]->cat_name; ...
0
votes
0answers
117 views

Help with Wp + Mixitup code

I'm using MixItUp and having this issue. I'm calling the filters like this: <?php $categories= get_categories('child_of=14&hide_empty=0'); foreach ($categories as $category) echo '<li ...