Home Forums Front-end Issues Reverse query Reply To: Reverse query

  • I’ve discovered what’s happening. I have users adding themselves to the relationship field via an ajax button. This works perfectly and the user is added to the field and if I go to the backend to edit that post I see the user in the relationship field. Also if I loop through all the posts the user is found in the relationship field. However, when I do a reverse relationship query, the user is only counted if they are added from the back end and not from my ajax. I’m using update_field();

    Does anyone have an idea why this might be?
    Do I need to call a function to refresh the post after update_field()? or is this a bug?