Skip Navigation

[Resolved] allow unregistered users see a post, but hide it on a search page

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 9 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2683541

Is it possible to allow unregistered users see a post if they have the URL, but hide it on a search page that list of all posts?

#2683558

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

As I understand - what you need is, if a user has a single post URL you want to allow both login and non-login user to display that post on frontend. But you do not want to display that within the view list - is that correct? If yes:

You should add a custom checkbox field "Show to public" if that is checked then when we display the view we will exclude all the posts from the list where checkbox field "Show to public" is set using the view's filter hook "wpv_filter_query" - does that makes sense?

#2683702

Thanks!