Skip Navigation

[Resolved] Filter a view to the posts the logged user has read access granted

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 6 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 6 years, 9 months ago.

Assisted by: Nigel.

Author
Posts
#626567

I have a custom post "Customers" I've created a posts group to secure access to "Customers" post

I have a view with all "Customers" posts, I'd like to display only the posts the logged user has read access granted, how could I do that?

"Customers" has children posts, How could I secure the children as well without create ad assign another post group to each child?

Is there a way to secure accesso to a certain post specifing just one user without create a post group?

#626858

Nigel
Supporter

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

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

Hi Marco

Firstly, please note that you are posting in the Community Forum for users of the free Types plugin. As a Toolset customer you can and should post in the Technical Support forum which we prioritise and where you should receive speedier service.

Before I go any further can I check with you, are you using post groups to restrict access to some specific Customer posts rather than all Customer posts?

Likewise for the child posts, do you need to control access to all child posts, or to certain particular child posts?

The last point, you want a specific post to only be visible to a specific user? And this user doesn't have a unique role? (Access operates on the basis of roles.)

For that you can use conditional shortcodes to wrap the content of the post in question and include a test for the current user (their name or user ID, for example) using the wpv-current-user shortcode.

See https://toolset.com/documentation/user-guides/conditional-html-output-in-views/ and https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-current-user

The forum ‘Types Community Support’ is closed to new topics and replies.