Skip Navigation

[Resolved] Filter view by parent taxonomy

This thread is resolved. Here is a description of the problem and solution.

Problem:
Filter view by parent taxonomy

Solution:
There is no feature available to filter the view by parent taxonomy as the thing is that - you can add the frontend filters to your view/block-view for the post type to which the view/block-view is set to query.

The workaround would be - what if you add the same taxonomy to your child posts, so, when the parent post is get saved/updated, you need to assign the same taxonomy terms to your child posts. Then you can add the taxonomy frontend filter for your child post type.

Relevant Documentation:

This support ticket is created 3 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Maximiliano Mendieta 3 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#1728713

Tell us what you are trying to do?

On an e-commerce site (woocommerce + woocommerce views) i created a many-to-many relationship betwen Obras (woocommerce products) and Artistas (post type wich is the "parent" of Obras). I created a view to show the list of products and I want to know if it's posible to filter (query filter) them by a "parent" taxonomy (Categories in this case).

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

hidden link

#1729353

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

There is no feature available to filter the view by parent taxonomy as the thing is that - you can add the frontend filters to your view/block-view for the post type to which the view/block-view is set to query.

The workaround would be - what if you add the same taxonomy to your child posts, so, when the parent post is get saved/updated, you need to assign the same taxonomy terms to your child posts. Then you can add the taxonomy frontend filter for your child post type.

#1729689

Hi Minesh, thanks for your reply. I was trying to avoid to do that because i don't want to have to repeat the same field but, as i thought, it's the only way to achive what i want. It would be great if you can put a feature request for something like this, something like a LEFT JOIN in sql where one can get some items based on a parent attribute/taxonomy in a relashionship. Thanks again for your time, have a great day!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.