Check ACF True/False in related posts
-
Hi,
I can’t get the conditional
[if]
shortcode to work with an ACF True/False field inside a[related]
shortcode, although the ACF True/False field is correctly returned for each related post.
Here’s the code:[related my_acf_relationship_field] [if field=my_acf_truefalse_field value=1] TRUE / [field my_acf_truefalse_field] [else] FALSE / [field my_acf_truefalse_field] [/if] [/related]
Let’s say i have 3 related posts and the first one has the ACF True/False ticked, the output is:
FALSE / 1
FALSE /
FALSE /The first one should be TRUE / 1
Any hint please?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Check ACF True/False in related posts’ is closed to new replies.