Tell us what you are trying to do?
I have a 2 custom posts ie
1) OPTICIANS
2) YOU&EYE AWARD EVENTS
And my end result for the view is this one..
hidden link
Now in the YOU&EYE AWARD EVENTS I create a post for every year ie 2016, 2017, 2018... 2021.
There's a many-to-many relationship between OPTICIANS and YOU&EYE AWARD EVENTS.. and in the intermediary posts I have these custom fields as 'checkboxes'
1) Participating Category
2) Nomination Category
3) Winner Category
In each of the above the award categories are mentioned ie Best Eyewear Retailer, Best Marketing Initiative, etc.. so all of them have the same named checkboxes... when opticians participate the checkboxes for the participating category would be checked (they could participate in multiple categories) and when some of they are nominated then the checkboxes in the nomination category would be checked and finally the winner category.
Here's the screenshots of the Relationship and the intermediary posts for an easier understanding.
My question is
When I create a view in a PAGE, what do I use in the CONTENT SELECTION? Do I use OPTICIANS or do I Use YOU&EYE AWARD EVENTS and create a post relationship query or do I use You&Eye Award Events To Opticians Intermediary Posts?
The condition for displaying the OPTICIANS who are participating would be to display those opticians that are in the intermediary posts where any checkbox in PARTICIPATING CATEGORY is checked for the EVENT in 2021..
Further instead of ANY checkbox, I'd like to know how to specify a particular checkbox (category)..
Another related question
I have a Event Start Date custom field in the events custom post .. it's in dd-mm-yyyy format I think.. but when I filter it to show only the events for 2021, how do I choose only the YEAR?
Please advise as I am very confused and I need to ensure that we have the best way to query this result for best performance.
I think you would need to have access to really understand the workings.. so do let me know if you need to have access and I'll be happy to provide you super admin access to check the setup.. I feel that would be much faster and more efficient.
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