I am trying to display a button only if the parent post has a custom field that is checked. I have a parent post type called "fairs" and a child post type called "booths". When the parent post type "fairs" has the custom field "Turn video chat buttons on" is checked, I want the button in the booth content template to be displayed.
Is there a similar example that we can see?
I am currently trying this out on this post: hidden link
The code I have for this conditional logic is :
[wpv-conditional if="( $(wpcf-turn-video-chat-buttons-on) eq '' )" evaluate="false"]
<a class="size-full booth-button talk-to-employer" href="hidden link field='anymeeting-link' output='raw'][/types]" target="_blank" rel="noopener">
<img src="hidden link" alt="Talk to the employer button" width="347" height="76" class="size-full"/></a>
[/wpv-conditional]
Currently, the button does not display even if the custom field "Turn video chat buttons on" is checked. Howe can I change the code in the conditional to make this work?