Skip Navigation

[Resolved] How Do I Display Child Posts to Author of Parent?

This support ticket is created 6 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by julieP 6 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#595316

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?

#595405

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.

#595590

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!!