Display name of the last child category
Display name of the last child category
Display name of the last child category
Category page shows Oops! That page can’t be found
I FINALLY figured it out. Phew. Answer is as follows: add_action( ‘woocommerce_after_subcategory’, ‘my_add_cat_description’, 12); function my_add_cat_description ($category) { $cat_id=$category->term_id; $prod_term=get_term($cat_id,’product_cat’); $term_meta = get_option( “taxonomy_$cat_id” ); echo ‘<div class=”cat_desc”>’.$term_meta[‘custom_term_meta’].'</div>’; } I hope this saves someone some time.
Remove Parent Category from Child Category URL
If i’m understood properly, you just have to remove the anchor from your code. Simply use: echo $brand->name; Instead of: echo ‘<a href=”‘.get_term_link($brand->term_id).'”>’.$brand->name.'</a>’; This will just echo the name of your brand. If you want to style it, you can add a class to it as the following: echo ‘<span class=”my-brand”>’.$brand->name.'</span>’; And then use the … Read more
i had a similar issue, where i wanted to show different subcartegories inside a main category shoes men shoes men women shoes women so inside shoes i wanted to show both men and women shoes whilst non of these items should be required to be in category shoes.. your tax_query might be correct but you … Read more
Custom Category/Subcategory structure
Add Product categories to WordPress menu without losing hierarchy
Load Page when a Page and a Category archive have the same URL: This is default WordPress behaviour: When you have the same URL for a category archive & for a page, WordPress will load the page instead of the category archive. So unless you have a plugin that is changing this behavior for your … Read more
Show all posts of sub category in a page like: foo.com/category/subcategory/ using UNCODE Theme