[Resolved] Filter View via CPT Taxonomy of logged in User
This thread is resolved. Here is a description of the problem and solution.
Problem:
Would like to filter a View of "Questions" where only posts are shown that match the role "expert" and where the category of the "Question" matches the category/categories of a users "Experts" post. There will only be one expert posts per user.
Example: Expert Post A > Author: User1 > Cat1,Cat4,Cat9
So the view is User1 one is logged in would show only questions of Cat1,Cat4,Cat9
Assign categories directly to the user but that relationship works as follows each user get has an Experts post where he is the author and has categories assigned. Theses categories should be matched against other CPT posts categories to filter.
Hi, I got a CPT "Experts" which has Categories matching another CPT "Questions"
I would like to filter a View of "Questions" where only posts are shown that match the role "expert" and where the category of the "Question" matches the category/categories of a users "Experts" post. There will only be one expert posts per user.
E.g. Expert Post A > Author: User1 > Cat1,Cat4,Cat9
So the view is User1 one is logged in would show only questions of Cat1,Cat4,Cat9
Thank you for contacting Toolset support. Your requirements are bit confusing, have you created Experts as CPT as well as Expert as User role? How the categories of Question CPT is connected to User role Expert?
1. Can you please provide step by step details that how you have created the View? (preferably with back-end screenshots)
2. What you expected to see on the front page?
3. What you actually see? (preferably with front-end screenshot and Link)
Hi Noman, I actually would like to assign categories directly to the user but that relationship to the best of my knowledge is not possible. So I created the experts CPT. The relationship works as follows each user get has an Experts post where he is the author and has categories assigned. Theses categories should be matched against other CPT posts categories to filter.
I tried to illustrate as best as possible in following screenshot. I Hope this is now understandable.
Thank you for providing more information. I am going through the details and proceeding further on this. I will update you soon with the outcome of this.