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
- Control term order on a per-post basis
- Does WordPress Offer a Way to Find All of the Categories that Don’t Have Children?
- How to hook on a WooCommerce checkout field?
- Woocommerce – How to add 5 stars to all products to test design
- How can I override these WooCommerce widget cart button functions
- Programatically update Custom Attributes WooCommerce
- Programmatically added variations not showing until clicking Update button
- Editing Header Titles of each details in woocommerce Order Email [closed]
- Import products to WooCommerce by CSV page won’t open [closed]
- How can i change the design of product sizes [closed]
- Following migration from DEV to LIVE, woocommerce can’t checkout
- WC 3.x Get categories from variable product of the cart
- Custom Post Type Archive Page Filtering
- How to handle Woocommerce API credentials
- Woocommerce Shipping label just hangs
- user password reset e-mail
- Extending the woocommerce product export functionality
- Woo Related Products How to override the plugin script?
- Line break on Product details [closed]
- WooCommerce add class name in the list [closed]
- How to display Woocommerce variations prices and descriptions
- Adding Transaction-Specific Conversion Tracking from Adwords into WooCommerce
- New field on checkout is shown but it’s not saved on the order details [closed]
- Woocommerce altered my homepage, and I can’t figure out how to revert it [closed]
- Woocommerce – Problem sorting and filtering products with different tax rates by price [closed]
- Why does my loop breaks the css below?
- How to add order status class to the body tag?
- Is it possible to remove editor from a custom product type?
- Parent category / child category posts
- Show password while you are typing it on the “my account” login page
- /page/ is not working with a custom permalink structure (WooCommerce)
- WooCommerce Bookings Plugin Not Saving Order ID
- Showing HTML if Post is In Certain Taxonomy Term
- Where is this text in a wordpress email coming from? Want to change/remove
- Add starts rating in woocommerce product comment from backend
- Need to check if user has completed a woo commerce payment
- Woocommerce show field in product if product-tag is “VET” else hide
- How to make a “subtitle” for each Woocommerce product
- Create Product with Woocommerce API, but Variations are not linked
- How to reduce checkout loading time of `?wc-ajax=checkout`
- unable to customize query to get filtered products by meta_key
- Woocommerce + Google Analytics (Conversion Rate Not Working)
- How to make product image inherit from category image
- Update user meta when customer update their first name
- Woocommerce API security concerns
- How to add a wrapper element on image for products page
- Dynamic subdomains for woocommerce affiliate sales but NO multisite. Is that possible?
- Woocommerce posts and products links works only once and then get 404 error
- Limit image resolution on upload file for specific field
- Woocommerce pagination problem- page/2 = 404 solution
- Woocommerce , how to set billing_address via JS?
- Using admin email in billing address
- Enable Payment gateway if ACF checkbox in user profile is checked
- How do you reactive related products on WooCommerce when it has been disabled?
- Display product variations in shop page
- How can I locate where the actions are defined? [duplicate]
- Shortcodes in billing fields doesn’t work
- Update a user meta key based on WooCommerce product purchase
- show multiple product photos on WooCommerce single page
- How to get _POST variable on WooCommerce product page (form on homepage)
- How do I put woocommerce cart page to my checkout page? [closed]
- Search box missing Woocommerce Product Bundle Extension
- Sorting Woocommerce products by category and attributes
- How to get Woocomerce categories count
- DatePicker in Woocommerce (My Account) Registration [closed]
- problems with an object product wooCommerce [closed]
- CSS url rules not relative to css path in account endpoint areas. IE. subscriptions
- error 500 in Back Office when using a woocommerce function in functions.php
- Sort by price when price is set in multiple keys
- Add a custom code with custom link after add to cart for every product
- WooCommerce product permalink based on product’s current category