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
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?