Problem:
The user created a conditional shortcode that was not working as expected.
Solution:
It turned out that the user was checking a custom field in a related post. This can't be done, we can only check for custom fields of the current post, or we need to use the item attribute to change the post that we are checking.
Or we can pass the custom field in a view shortcode argument then check it using the [wpv-attribute] shortcode.
Relevant Documentation:
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/item-attribute/
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-attribute
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 |
---|---|---|---|---|---|---|
9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - | - | 9: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: Africa/Casablanca (GMT+01:00)
Ce sujet contient 20 réponses, a 2 voix.
Dernière mise à jour par Il y a 4 années et 1 mois.
Assisté par: Jamal.