Product categories in Woocommerce is a term, so you can get the categories with get_the_terms function:
echo '<h3><a href="' . get_the_permalink() . '">' . get_the_title() . '</a></h3>';
echo '<span style="display:none;" class="prodcat';
$categories = get_the_terms( get_the_ID(), 'product_cat' );
foreach ($categories as $category) {
echo ' ' . $category->name . '';
};
echo '"> </span>';
Related Posts:
- Detect whether a page is a product subcategory page?
- Display Categories Assigned to a WooCommerce Product
- How to show “Previous Category” and “Next Category” in categories archieve template [closed]
- get deepest Woocommerce Product Category on Archivepage
- woocommerce – how to get product link by id
- Display data when category is empty
- Category with description and thumbnail
- Add category description on product page (Woocommerce)
- Link Back to Parent Category – Woocommerce
- WooCommerce: Can’t use wc_get_products for custom REST API endpoints
- How to remove an action within a class with extends
- How to disable Woocommerce password recovery and use the default WordPress password reset page?
- Display WooCommerce size product attribute on shop page
- Declaring custom woocommerce product type as virtual / downloadable only [closed]
- How to remove_action inside class [duplicate]
- Redirect if current user is logged out and current page is /my-account
- woocommerce_before_calculate_totals in woocommerce 3.0
- Display a list subcategories under the main product category thumbnails?
- Unable to programmatically remove product from WooCommerce cart
- creating product with variations using woocommerce REST API
- Output link to category from WP_Query loop of woocommerce products
- Rewriting Woocommerce Product Filters To URL Segments
- How to Change WooCommerce Variable product pricing by SKU or visible children id
- Is it possible to cache ?wc-ajax=get_variation
- Adding extra one email address who receives email as admin – woocommerce
- Redirect the single product page link to the shop page
- Is WooCommerce updates for WordPress necessary? [closed]
- How to get product count with respect to categories in WooComerce
- Display list of categories that contain products with a specific tag
- Payment methods are not displaying in Woocommerce
- How to display empty stars on products with woocommerce?
- Product admin page breaking with too many product variations [closed]
- Automatically making a newly saved payment method default in WooCommerce
- WooCommerce update_shipping_method ajax call wipes shipping method set on non-checkout page [closed]
- Product options/variations notice displays as an Alert [closed]
- Expired session error (admin) when I try to make a call to WooCommerce api [closed]
- Product variation attributes does not appear as it should in the cart – woocommerce [closed]
- Hide decimal on hompage, category and product page
- Get order_id from the product_id in woocommece [closed]
- Shipping methods in dropdown instead of radio buttons [closed]
- 600k of option_name “c_facebook_background_product_sync_job”
- Adding Buy Button to Blog Post (Woocommerce) [closed]
- Woocommerce get the Archive/Category slug of the current category page
- Woocommerce Variable Product – Please choose product options… [closed]
- woocommerce_order_status_completed not working
- Woocommerce. Max weight per order based on shipping class
- Make order notes field at woocommerce checkout only viewable on front end by Admin level user role [closed]
- Woocommerce – auto logout after payment
- Display SKU for each Single product title in group product!
- How can I add a so i can show sale price under normal price
- Synchronise Renewals on existing subscriptions [closed]
- Sort downloads by most recently purchased first in my account WooCommerce [closed]
- Hide shipping method in woocommerce if custom checkbox field is selected
- how to change add to cart button to call for price button in one of product variation?
- Next/Previous Product with custom order by price & products inside the product category [closed]
- Submitting product attributes via Ninja Forms wordpress?
- Migrating WordPress + WooCommerce from server to Local
- wp-cron and woocommerce subscriptions killing performance
- How to Add “parent category description” in Woocommerce sub category page if there is no description available for child category
- Woocommerce – Hide shipping at all, if only certain product or products with certain shipping class is in the cart
- How to make wocommerce shop products same heigt
- Woocommerce Variation product added twice to cart
- Woocommerce product query not working in other WPML languages
- Woocommerce get attributes
- Add custom field address_3 before city in user profile
- How to merge 2 accounts with same email address after merge of 2 woocommerce databases
- Get $order in wp_head
- Update WooCommerce stock status with SQL query if stock value is greater than 0
- How to find which last line executed in wordpress?
- Adding order details in woocommerce all booking dashboard
- woocommerce cart related issue cart not deleted
- WooCommerce – Hide price and add to cart button
- Send a different “thank you” email based on payment method
- Delete product image using WooCommerce API?
- Empty Cart on just mobile and Microsoft edge browser
- How to add a special Woocommerce “Buy Now” button?
- WP All import sale price 0 [closed]
- WooCommerce database upgrade behaviour
- Integration widget Mondial Relay Js
- creating number of database entries based on users numerical input
- Custom Registration Fields woocommerce
- Duplicate post/product permalinks. (Link is temporary)
- Add an extra column to /my-account/subscriptions/ WooCommerce page
- Woocommerce Shipping based on condition and cart value
- Clone and modify Woocommerce Products catalog
- Update order status based on condition
- How can I add a Categories page link to a menu? [closed]
- Give auto discount to upsells products
- WooCommerce Table Rates not splitting up
- How can I let the user choose size of a shoe in the store? [closed]
- Hide/show specific products for backend users in woocommerce
- I’d like to add a button under the “Add to Cart” button which says “Buy on Amazon” and links to my Amazon product page [closed]
- If YITH Wishlist page is set to the WooCommerce my-account endpoint, the endpoints stop working all together. Any solution?
- WooCommerce pay per photo upload [closed]
- Override woocommerce template from parent theme
- Woocommerce checkout column total too small can not get it wider [closed]
- WooCommerce – How to add a custom field to only a specific email template [closed]
- error 500 in Back Office when using a woocommerce function in functions.php
- How to update all products with same SKU prefixes when updating stock with CSV?
- What is the best and cheapest way to generate dashboards about conversions data and store users? [closed]