I have a parent post type event-type that contains a status field
[types field="event-type-boat-requests-allowed-status" output="raw" id="$event-type"][/types]
I know that displaying this field produces the correct value.
I want to test for a status value = 1 but cannot seem to get the syntax right.
I use this type of condition test quite often (without the parent link)
e.g.
[wpv-if status="wpcf-event-status" evaluate="$status=1"]
and it works fine.
Adding the parent linkage seems to be messing something up somewhere.
Any suggestions much appreciated as I have tried searching for the answer and experimented with lots of syntax combinations. It appears that my syntax thinks the status in the data record is 0 instead of 1.
I tried the link suggested before but could not find a parent example that fitted what I wanted to do. I now have a template for future use (added to my library!).