Home › Forums › Front-end Issues › Query posts by user relationship field › Reply To: Query posts by user relationship field
@hube2 I agree I need to update all the values however I don’t think that is right..
If the post ID was 1
'meta_value' => ':' . $post_ID . ';'
would only match exactly :1; not all the numbers you listed?
Obviously I won’t have a low post ID like 1 they’re more likely to be in the 100s and there’s only likely to be a few post IDs maximum saved in each field value.
I will look at looping through and re-saving the values to the database.
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.