Hi
pls let me know how to add a condition for loggedin users in conditional block. I tried this
( ( '[wpv-current-user info="id"]' eq 'logged_in' ) AND ( '[wpv-post-field name="user-status" ]' eq '1' ) ) but it doesn't work.
If in the advanced editor I add
( '[wpv-current-user info='logged_in']' eq 'true' )
after saving it's automatically changed into
( '[wpv-current-user info="id"]' eq 'true' ) that doesn't work either.
Please explain.
thanks
Nicola
Hi there
I just used the conditional block to check that the current user id wasn't empty—which works as expected. Switching to the Advanced editor it showed the generated condition as
NOT ( empty( '[wpv-current-user info="id"]') )
Hi Nigel, sorry but I don't understand, it looks like your reply is for another ticket. How did you check it ? or please explain thanks
You want to add a conditional block that checks if the user is logged in, correct?
The screenshot in my reply shows the condition that you can use to do that.
(The expression shared in the text is what is shown if you switch to the Advanced editor, though you wouldn't need to do that.)
Hi Nigel, it works ! Thank you!