The Grid - Show Only Parent Category Terms List

Hi guys,

Please see https://rkade.uk.com/store/ - on the grid I have, I display the terms list; PRODUCT_CAT on the top-left of the grid.

It is currently showing all categories, both parent and child and I only wish to show the parent category instead

E.g.

What do I need to change PRODUCT_CAT to or what CSS do i apply?

Thanks :slight_smile:

Hey there,

There is no option to filter the terms list and there’s also no class differentiating the parent and child categories. What you can do is create a custom field for your products and use it in Metadata instead of Terms list.

Thanks.

Thanks for your help, are you sure? I only need to display terms from categories ‘1326, 1275, 1274’

Hi there,

I checked and it’s not possible. According to description

Leave this field empty if you want to display all taxonomies terms. (e.g: category, post_tag)

This means you can only add taxonomy name like category, post_tag, portfolio_category, and etc. And there is no option for specific terms. Taxonomy is different from terms.

And there is no special class name that can be used for CSS to differentiate parent term and child terms.

Thanks.

I see- thanks for double checking. I am now trying to use metadata - ‘pa_release_date’ but this doesn’t seem to appear on the grid :frowning:

Hi there,

Would you mind providing your login credentials in a secure note? For the meantime, please pause your CF while I’m testing. I like to see how it’s implemented and see if it’s cache related or different meta.

Thanks!

Provided above :slight_smile:

I will pause CF now for you - Cheers!

I can’t see where you’ve setup your custom field. Please give us details and screenshots.

In my previous reply, I used ACF Pro to create a custom field.

Thanks.

I have the product attribute field created by a plugin already. Release Date at,

https://rkade.uk.com/wp-admin/edit-tags.php?taxonomy=pa_releasedate&post_type=product

Hi There,

Please use the slug name of the attribute.

Thanks for that, but I’ve tried before with no luck. Tried again and I’m still unsuccessful.

:confounded:

Hi there,

How did you add the release date in your product’s meta? I don’t see any product that has that meta so I went ahead and added to one of your product and it’s displayed. And it works, you can add the meta-data in your product’s custom field.

Thanks!

I add the release date as a product attribute, instead of a custom field…

Will I have to use custom field? Thanks. :slight_smile:

Hi there,

Yes, you need to use the custom field. The skin builder’s meta-data is only applicable for standard meta. Not for the meta added through 3rd party features.

Thanks.