Product Category shortcode for product loop

Closed
REHub - Price Comparison, Affiliate Marketing, Multi Vendor Store, Community Theme REHub - Price Comparison, Affiliate Marketing, Multi Vendor Store, Community Theme September 19, 2022
Login to reply
Yvette Boye
2 months ago

Okidoki. Then will start creating global attribute and have same name as the last category after comma. Think will solve it.

Thanks for your very fast help.

Igor Sunz Support Agent
2 months ago
Shortcode has no such option

Пн, 19 сент. 2022 г. в 18:34, Sizam Support Help Desk <
sizamtheme+93JermNjbOVzwobv0nkL@mail.support-hub.io>:
Yvette Boye
2 months ago

Thanks. Works.

More than one product category is showing. Is it possible to add code so only last category (last category after comma)?


Current code:

<div class="border-top mb10 mt15"></div>

<ul class="font80 mb0 ml0">

<li class="ml15 list-type-disc mb0 lineheight15"><span>Merke:</span> [wpsm_custom_meta field="store" type="taxonomylink" show_empty=1]</li>

<li class="ml15 list-type-disc mb0 lineheight15">

<span>Kategori:</span> [wpsm_custom_meta field="product_cat" type="taxonomylink" show_empty=1]</li>

</ul>

Igor Sunz Support Agent
2 months ago
product_cat and not product_category

Пн, 19 сент. 2022 г. в 17:49, Sizam Support Help Desk <
sizamtheme+93JermNjbOVzwobv0nkL@mail.support-hub.io>:
Yvette Boye
2 months ago

Hi,

What is the shortcode for product categories?

Backgorund:

Is going to use code inside product loop and now have:

<div class="border-top mb10 mt15"></div>

<ul class="font80 mb0 ml0">

<li class="ml15 list-type-disc mb0 lineheight15"><span>Merke:</span> [wpsm_custom_meta field="store" type="taxonomylink" show_empty=1]</li>

<li class="ml15 list-type-disc mb0 lineheight15">

<span>Kategori:</span> [wpsm_custom_meta field="product_category" type="taxonomy" show_empty=1]</li>

</ul>


But the last part with category does not work. Also would like to show the sub category if possible.

Additional Info

Link on page with issue: https://www.blackfridayoversikten.no/solcelle/