Home › Forums › General Issues › Cant query by custom field › Reply To: Cant query by custom field
Looking at what I can see of your code I don’t see anything that wrong. This is not a valid WP_Query argument 'numberposts' => 1,
that I can find, but it should not effect the query since it should be ignored. This should probably be 'posts_per_page' => 1,
If you re-post your code and use code tags around id so the the forum does not trash it I may be able to see more that might cause a problem.
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.