I have a WordPress with woocoommerce setup. I have replicated my "customer" (woocommerce user) with post type customer having the same author.
Every author has videos, lessons, and questionnaires assigned to the customer post type using the toolset relationship.
Videos Relationship -> Many to Many
Lessons -> Many to Many
Questionnaires -> One to One
Everything works fine when the Access control for these post types (customer, video, lessons, and questionnaire) are set as "Use the WordPress Default Read Permission". I want to use the toolset access control.
When I start managing the post types using toolset, the view which renders these post types doesn't render anything.
I have the access to edit form and single page, but the view doesn't render anything.
The way I have set the view is.
One view checks and finds the customer post from the currently logged in user. This view then calls another view which finds related post in that particular relationship for the customer post.
This renders nothing.
On the contrary, I have another setup. where, one view checks for the custoemr post from the currently logged in user : hidden link. And the other view renders through an intermediary field set as . hidden link.
This renders correctly.
The acess controls setup is set as.
Customer post type
Customer user has the power to edit delete and preview own post.
Lesson post type
Customer user has the power to edit delete and preview own post.
[I think this is where the problem occurs, as it is related to through a relationship]
How can I solve this ?
I have one more post type "Zoom Meeting" which I wish to use through access. Although this is controlled through custom code, but when using acess it blocks from returning any result to my wp_query.
I have already created a new test server to play with this, please allow me to share that credentials if you wish. You can tell me the answers directly as well.
Thanks a lot.