Tell us what you are trying to do?
I had a conditional field to allow administrators to delete a post. It worked great. I updated the toolset plugins a few days ago and now it doesn't work.
The code is:
[wpv-conditional if=" ( ( '[wpv-current-user info="role"]' eq 'administrator' ) ) " ][cred_delete_post_link action='trash' text='Delete' message='Are you sure you want to delete this listing?' message_show='1' class='cred-refresh-after-delete'][/wpv-conditional]
Nothing else has changed.
Is there any documentation that you are following?
No
Is there a similar example that we can see?
I updated to the single quote but the results are the same. The preview shows it properly comparing and matching administrator to administrator but the delete link just stopped displaying. I show the two if conditions when I inspect and both are divs with no content. (two ifs for two roles).
They are both text and field set to html with [wpv-conditional if=" ( ( '[wpv-current-user info='role']' eq 'administrator' ) ) " ][cred_delete_post_link action='trash' text='Delete' message='Are you sure you want to delete this listing?' message_show='1' class='cred-refresh-after-delete'][/wpv-conditional]
Wanted to add that the original code works great on another page that didn't need the conditional so it's something that seems to have changed using the conditional within the fields and text. Something with one of the latest updates? I noticed the IF icon is no longer displayed on fields and text.