woocommerce product category tabs [closed]

If you mean ‘tabs’ as in the way WooCommerce presents the Product Description, Attributes, and Review on the product page then take a look at the template files for WooCommerce. You can find them at ../wp-content/plugins/woocommerce/templates. There’s a good article on customizing the templates at http://wcdocs.woothemes.com/codex/template-structure/ You need to follow these guidelines to make sure … Read more

Show Available Taxonomy List with Current Category

I’m not hundred percent sure but I think the widget in scribu’s plugin, Query Multiple Taxonomies, works exactly as you described. You can find plenty of resources on the subject on his blog. This plugin lets you do faceted search using multiple custom taxonomies. It has a drill-down widget with multiple display modes. Said widget … Read more

Get only one of the current categories

get_the_category should be returning all of the categories for your post, but you are only picking one of them, the first one, when you do this– $category = $category[0]->cat_ID;. Instead of that line try: $allcats = array(); foreach ($category as $cat) { if (29 != $cat->cat_ID && 35 != $cat->cat_ID) { $allcats[] = $cat->cat_ID; } … Read more

Category location styling

The way i fixed the issue was to insert the following code into my main CSS. .post-categories, .post-categories li {display:inline; padding: 0px;} I hope this helps others in this issue in the future.

Show category images on single product page and product overview page

I had the same problem and I came up with this solution, hope it helps. <?php $terms = get_the_terms( $post->ID, ‘product_cat’ ); foreach ( $terms as $term ){ $category_name = $term->name; $category_thumbnail = get_woocommerce_term_meta($term->term_id, ‘thumbnail_id’, true); $image = wp_get_attachment_url($category_thumbnail); echo ‘<img src=”‘.$image.'”>’; } ?>

Creating gallery with taxonomy images plugin?

Change the second line of your code to this: $catlist = get_categories( ‘hide_empty=0&parent=” . $cat_id ); Instead of child_of parameter, use the parent parameter of the get_categories() function; this will display the direct descendants (i.e. children only) of the category and not grandchildren of the category. For more information visit the Codex page for get_categories().