[Resuelto] How to use user meta fields in conditional shortcodes
Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.
Problem:
The UI doesn't let you insert user meta fields when using the conditional output button to insert the wpv-conditional fields.
Solution:
You need to insert them manually. The correct format to test whether a user meta checkboxes field is empty (the use-case for the client) is like so:
[wpv-conditional if="( '[types usermeta='prediction' current_user='true' output='raw'][/types]' ne '' )"]
<p>What to display if condition met</p>
[/wpv-conditional]
This support ticket is created hace 6 años, 2 meses. There's a good chance that you are reading advice that it now obsolete.
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.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
I heard back from my colleague who pointed out that where I had reported it not working I had a simple typo in the shortcode. I double checked and they were right.
So, testing once more, I found that the following worked: