I have custom post type record and custom post type payment
payment is child of record
The author of record is John and author of payment is Sally
How do I display all payment post types that are children of John's record post type to John (and only John)?
I've tried this but it didn't work (no posts returned):-
I created a View based on payment post type with a filter to select posts that are children of the current post in the loop and I placed this View inside a View based on record post type with a filter to select only posts with author the same as the current logged in user.
Can you help please?
As you described your View, it seems like a good approach.
- Can you share the code you used to place the child View inside the parent View?
- Can you share screenshots showing the settings for each View?
- Are you using Access?
- What roles are assigned to John and Sally?
I'll take a look and see what we can do to get this working correctly.
Good questions! John's role is higher than Sally's. I'm using Access and have checked that edit_others_posts and read are checked for John's permissions. His role can also edit payments created by other users.
This is on a multi site so I've created a new blog and set up the bare minimum of items to test this away from the main site and interestingly it works so it looks like something's not quite right on the main site somewhere. Got some investigating to do!
Thanks for your help - I'll come back to you on this if I need to but I suspect I won't!!