# Tell us what you are trying to do?
I'm trying to show only one of two possible buttons based on a Custom Field called "estatus"
this used to work:
[wpv-conditional if=" ( ( $(estatus) eq 'aprobado' ) ) " ]CAN'T EDIT[/wpv-conditional]
[wpv-conditional if=" ( ( $(estatus) ne 'aprobado' ) ) " ]CAN EDIT[/wpv-conditional]
# Is there any documentation that you are following?
I looked at https://toolset.com/2021/08/5-advanced-uses-of-toolsets-conditional-block-in-wordpress/
but my custom post type does not appear for selection on the Edit Conditions window.
Only selecting "other post" and selecting one of the custom posts works, but I need to select the status from the current post in the loop.
What could be wrong here?
Best regards

Minesh
Supporter
Les langues:
Anglais (English )
Fuseau horaire:
Asia/Kolkata (GMT+05:30)
Hello. Thank you for contacting the Toolset support.
Is the conditional statement you shared working or not?
[wpv-conditional if=" ( ( $(estatus) eq 'aprobado' ) ) " ]CAN'T EDIT[/wpv-conditional]
[wpv-conditional if=" ( ( $(estatus) ne 'aprobado' ) ) " ]CAN EDIT[/wpv-conditional]
If no - can you please share problem URL and admin access details and what is you expected output.
*** 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.
No further help needed, maybe our problem was a caching issue (altough we don't have a caching plugin installed)
Now the conditionals work as expected.
Thanks.