I have solved the issue with creating a list with
http://codex.wordpress.org/Template_Tags/wp_list_categories
changing style to list, then style it with CSS to my needs 🙂
<?php
$taxonomy = 'product_cat';
// get the term IDs assigned to post.
$post_terms = wp_get_object_terms( $post->ID, $taxonomy, array( 'fields' => 'ids' ) );
if ( !empty( $post_terms ) && !is_wp_error( $post_terms ) ) {
$term_ids = implode( ',' , $post_terms );
$tophelp_categories = wp_list_categories( 'title_li=<span class="posted_in">Kategóriák:</span>&style=list&echo=0&depth=0&taxonomy=' . $taxonomy . '&include=" . $term_ids );
// display post categories
echo ($tophelp_categories);
}
?>
Related Posts:
- Woocommerce get category image full size
- Programmatically create product category and add thumbnail in woocommerce
- Detect whether a page is a product subcategory page?
- How to show “Previous Category” and “Next Category” in categories archieve template [closed]
- Use get_term_children to get the sub category of a parent category for the current post
- get_terms won’t display product_cat or any other custom taxonomies when specified
- How to get woocomerce attributes thumbnail in PHP? [closed]
- get deepest Woocommerce Product Category on Archivepage
- How to get all attributes with their terms related to specific Woocommerce product category [closed]
- Set post categories to include parents when setting child category
- WP_Error on attribute + term insert
- WooCommerce: One term for Many Product Attributes
- woocommerce – how to get product link by id
- Display data when category is empty
- wp_set_object_terms setting only first id from array
- Restrict product tags archive to certain users
- Split taxonomies on different pages
- Get categories within specific term
- Get WooCommerce product category list in functions.php
- Exclude Specific Product Category for showing up in its parent category page
- Restrict retrieved terms by category?
- I’m trying to display product categories on each product in the list
- Categories and Tags Conflict after Woocommerce Installation
- Display x number of terms and exclude hidden
- WordPress using get_term to retreive slug not working as expected
- Category with description and thumbnail
- Add category description on product page (Woocommerce)
- Link Back to Parent Category – Woocommerce
- cannot create product attribute (taxonomy) and add terms on the same execution
- Is There a Difference Between Taxonomies and Categories?
- Woocommerce – Add a product to cart programmatically via JS or PHP [closed]
- ( Woocommerce) How to get the user belonging to an order? [closed]
- Get the product list of a given Category ID
- List of JS events in the WooCommerce frontend
- get woocommerce My account page link
- WooCommerce: How to edit the get_price_html
- How to Display Product specific to a category with WooCommerce Plugin? [closed]
- Get woocommerce product price by id [closed]
- Product categories don’t appear as option to build menu
- Display All Products by Category with WooCommerce
- WooCommerce Variable Product Price not showing on single product page
- Check if a post is in any child category of a parent category
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- How to override WooCommerce template files?
- Woocommerce add extra field to variation product
- Getting the gallery images from products in woocommerce?
- How to get current product category ID in product archive page
- Get url of product’s images (woocommerce)
- WooCommerce prices location in DB
- Retrieve Product category ‘NAME’ by product category ID – WooCommerce?
- Order by rating not works in wp_query
- Woocommerce: How to remove page-title at the home/shop page but not category pages
- get_terms vs. get_categories: does it matter?
- Woocommerce show cross sells on singe product page [closed]
- How to add a new endpoint in woocommerce
- Are there any hook or filter when refund is done through admin -woocommerce
- How to check if is in cart page? [closed]
- Display single product attribute value on Shop page (Woocommerce)
- Display Category Thumbnail and links in Woo commerce
- Order get_terms() By Custom Field
- Control term order on a per-post basis
- WP/WooCommerce REST API cart/checkout/order [closed]
- how to use wc_create_order with subscription product
- WooCommerce: Webhook disabled on its own
- MySQL Query to Retrieve Category from wp_posts
- How to query only for products with status “in stock” in WooCommerce? [closed]
- Fixing category count
- Share users and WooCommerce memberships between two installations
- Slow Loading Attribute Select – WooCommerce Backend
- WooCommerce: Can’t use wc_get_products for custom REST API endpoints
- How to change or add Woocommerce thank you page URL key content?
- How can I define a custom template for woocommerce [products] shortcode? [closed]
- How to remove an action within a class with extends
- single-product.php template not working for single products [closed]
- Insert variations via woocommerce api [closed]
- WooCommerce get physical store address
- How can I get category ID by category name?
- Is it possible to add custom fields to a WooCommerce attribute term? [closed]
- wc_get_template_part( ‘content’, ‘product’ ) | Where is this file located?
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- how to get woocommerce product attribute slug
- Correct function to get the user’s latest Woocommerce Subscription?
- Move payment options at checkout in WooCommerce [closed]
- add_filter to modify woocommerce_cart_item_name hyperlink
- Where do the cart details are stored in database?
- How to display product price of the product in loop
- get_terms name__like list categories according to letter
- How to disable Woocommerce password recovery and use the default WordPress password reset page?
- wp_list_categories: order by term order?
- Elegant way to add parent categories?
- How can I select a primary category?
- Display order items names in WooCommerce admin orders list [closed]
- Is it safe to delete from db orphaned posts i.e. whose post_parent no longer exists?
- Add custom variable to cart content [closed]
- Get product details by url key in WordPress woocommerce
- Get product link
- WooCommerce – Hook after Loading Variation in Admin Edit page?
- How to delete woo commerce order pragmatically? [closed]
- WooCommerce changes lost password reset link
- Process checkout using WC REST API