I have a CPT that stores people with assignments.
The assignments info is a repeating field.
For every person I can add some info about assignment:
- is it in charge? [checkbox]
- role [select]
- unit [select]
- start/end date [date]
On a page not related with CPT i want to show, with views, only the person that is in charge for a specific role in a specific unit.
On CPT side I have 2 persons:
person 1
- is in charge for President role in the unit Marketing
- has others assignments in the past for other unit
person 2
- was in charge fo President role in the unit Marketing
- has others assignments in the present not related to the role and unit that i'm interested in
In Views i want to check if a person has the checkbox selected AND a specific role AND specific unit then display it.
Well, you'd do that with a Query Filter, applying a filter to those fields.
https://toolset.com/documentation/user-guides/filtering-views-by-custom-fields/
But I am not sure if you refer to a Repeating Field Group, as implemented in Types 3.0, or to a repeating Field.
A repeating field could unlikely be used in a setup like you mention, so I assume you have a Repeating Field Group, in where you have single Fields (Role, In Charge, etc).
Is this correct?
In that case, you would follow this:
https://toolset.com/documentation/getting-started-with-toolset/creating-and-displaying-repeatable-field-groups/
You would then still add a Query Filter by the same fields, so to return for example only items with "in charge" checked (and consecutive other filters)
In case you cannot move on with this information above, I will need to know exactly what structure you use.
Maybe it would help to see it online on the site, how you set things up.
I could then create a dummy page and insert a dummy view that shows a list of filtered posts or fields, according what you describe/d.
Thanks!