Home › Forums › General Issues › Trouble with relationship query › Reply To: Trouble with relationship query
Hi @elliot
I was able to get the query to work by removing the quotes from the value
param as such:
'value' => get_the_ID(), // dropped the quotes around the value since its a number
Hopefully this doesn’t cause other issues, but I’m glad it’s working. Any thoughts on why it’s different from your code? Perhaps you can explain further why the quotes were there in the first place. Have you seen issues arise with false positives?
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.