Problem:
Conditional display based on custom field value using PHP
Solution:
You can use the Types PHP API function types_render_field() to get value of custom field.
You can find proposed solution in this case with the following reply:
https://toolset.com/forums/topic/conditional-on-php-shortcode/#post-2314245
Relevant Documentation:
- https://toolset.com/documentation/customizing-sites-using-php/functions/
- https://toolset.com/documentation/customizing-sites-using-php/
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 | - |
Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)
Este tema contiene 5 respuestas, tiene 2 mensajes.
Última actualización por 4 years, 3 months ago.
Asistido por: Minesh.