Skip Navigation

[Closed] Issues with using conditional block

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 7.12 hours from now. Thank you for your understanding.

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 1 year, 11 months ago.

Assisted by: Minesh.

Author
Posts
#2503649
Screen Shot 2022-11-25 at 12.54.22 AM.png
Screen Shot 2022-11-25 at 12.58.12 AM.png
Screen Shot 2022-11-25 at 12.54.08 AM.png

Tell us what you are trying to do?

Trying to display fields based on whether users are logged in or not.

From what I can tell from the documentation, if I set the condition for ( '[wpv-current-user info="id"]' eq '0' ) that means the user is not logged in?

I am not getting the expected output for users that are not logged in.

I have a radio button that a user can set to being:
visible to everyone (meaning even users that are not logged in can view it)
Visible to some (meaning visible to only logged in users)
Visible to none (meaning no one can see it even if they are logged in)

I'm attaching an image of the radio button settings. I think that I am testing for static values of 1, 2, and 3 of the radio button.
I'm also attaching the conditional logic that I'm using.

From what I can tell, this condition is NOT working for users that are not logged in and seems to be working for logged in users.

What is the link to your site?

utcomposers.com

#2503681

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

I see you shared the following conditions:

I have a radio button that a user can set to being:
visible to everyone (meaning even users that are not logged in can view it)
Visible to some (meaning visible to only logged in users)
Visible to none (meaning no one can see it even if they are logged in)

==>
For WordPress when user is not logged-in it's a guest user.
- Visible to none (meaning no one can see it even if they are logged in)

For the above condition - to what user it should display - only for administrator?

The topic ‘[Closed] Issues with using conditional block’ is closed to new replies.