Can you please tell us what you are trying to achieve?
I am using the conditional block to display a menu, and I want it to appear only if the logged-in user has a specific custom field checked.
This is the shortcode that displays the fields that were checked during user creation: [types usermeta='roles' separator=', ' user_is_author='true'][/types].
Hello. Thank you for contacting the Toolset support.
Toolset conditional block you can use to compare the post custom field. To check the user custom fields, either you can switch to the [wpv-conditional] shortcode or you can enable the advance mode for conditional block and add the condition manually.
For example:
( NOT ( empty( '[wpv-current-user info="id"]') ) AND ( '[types usermeta="roles" output="raw" current_user="true"][/types]' = 'role_value' ))
Where:
- Replace role_value with your original role value.
If above solution does not help, please share admin access details where you want to add conditional and what role value you want to compare.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.