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?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.