Skip Navigation

[Resolved] Contional view by Tag from a tag on the Custom Post Type & select products

This support ticket is created 4 years, 1 month 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 4 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#1538157

Tell us what you are trying to do? I products grouped by Tags. I have created a Custom Post Type called Featured Collections. I would like a view that will filter by the Tag on the specific post type.

Is there a similar example that we can see? For example I created this grouping of products using the Tag "floraljan20"
you can see that here. hidden link I have a featured collection post - that has been tagged with the same tag. I would like the page Featured Collection page (single) to include the group of products at the bottom of the page. But the tag changes with each Featured Collection... When I create the conditional view there is not a dynamic field option so that it automatically only includes the group of products for that specific tag.

What is the link to your site? hidden link

#1538463

Hello,

I suggest you try with nested views. For example:
1) Parent taxonomy view:
- Query Tags terms
- Filter by:
Taxonomy is set by the page where this View is inserted
- In view's loop, display below child post view

2) Child post view:
- Query product posts
- Filter by:
Select posts with taxonomy:
Tags set by the parent Taxonomy View
- Display product post information

3) Then display the parent taxonomy view in single "Featured Collections" post content.

More help:
https://toolset.com/documentation/user-guides/views/using-a-child-view-in-a-taxonomy-view-layout/

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