Skip Navigation

[Resolved] Field not displaying to user but is to admin

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.

Our next available supporter will start replying to tickets in about 4.99 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 9 replies, has 3 voices.

Last updated by tacoF 1 year, 10 months ago.

Assisted by: Waqar.

Author
Posts
#2519251

I am trying to:
Display a standard field post source parent. Post title with a link.

The field displays for the admin but not for the user. The parent is a public post.

It's added through Guttenberg. All other fields added display ok, but they belong to the post created by the user.

#2519267

I did not include a link as it would require you to create a free account and then create a new progress
hidden link

Once you created it and view the new post, it would display:

Progress is based on: Repetitions
Exercise: THIS SHOULD DISPLAY THE EXERCISE WHICH IS A PARENT; IT DISPLAYS IF YOU ARE ADMIN
Date: December 9, 2022
Number of kettlebells:2 (double kettlebells)

#2519273
Untitled-2.jpg

Here is a screenshot of the admin page.

#2519287

OK, I found out where the issue is but do not know how to solve it.

The post that this information is on, is set as PRIVATE, as the user creates it and only they should be able to ever see it.

So, when the user looks at the post they created they do not get to see the Parent info, which happens to be just public post info.

#2519713

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

Can I clarify, you are talking about Toolset post relationships here, rather than hierarchical pages?

And the problem arises when using dynamic sources in a block in the template for the child post that refers back to the related parent (when the child post has status private)?

If you confirm we can check that scenario.

#2519725

I confirm that this is a Toolset relation.

The post is related to the Exercise, a Progress Update is set to private upon creation.
Once I mark the post as public, it shows the Exercise to the user.

#2520725

Hi,

Thank you for sharing this update.

I've performed some tests on my website with a similar setup as you've shared, but couldn't reproduce this behavior. This suggests that something specific to your website is involved here.

Can you please share temporary admin login details, along with the link to the example post page, where the parent post is not showing?

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

regards,
Waqar Ali

#2521355

I provided log in details a while ago but have not heard back?

#2522557

Thank you for waiting as we had some unusually busy forum queue due to the holidays.

During testing and troubleshooting, I noticed that you'll need to grant the "read_private_posts" capability to the user role "Site Registered User", so that they can see the related "Exercise" post, on the single "Note" post page, when in the 'private' state.

I've enabled it on the staging website and you can enable the same on the live/production website from WP Admin -> Toolset -> Access Control -> Custom Roles -> Site Registered User -> Change permissions -> Other capabilities.

#2523119

My issue is resolved now. Thank you!

Brilliant, thanks for that. It doesn't make sense, as the user was able to read the private post, it was the info that wasn't private that would not display. Kind of like private and public don't mix. Either way, thanks for debugging this.