Skip Navigation

[Resolved] Can’t select Custom Field for my condition in a loopview

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.

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 1 voice.

Last updated by cesarR 6 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2794624

# 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

#2794637

Minesh
Supporter

Languages: English (English )

Timezone: 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.

#2794646

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.