I have trouble with a relation field.. im doing an update_field() .. and in backend it has populated the field correctly.. but in frontend it doesnt work when makeing query with the rel field.. but when i click UPDATE in backend on that post.. THEN it works!? What have i missed?
http://pastebin.com/DYSx2Uw2
The updates are at row 56, 57:
update_field('field_5409c615fee5b', $post_id, $post_module_id); // CPT A
update_field('field_5409e884a7aeb', $post_module_id, $post_id); // CPT B