Querying for a custom post type by one of it's ACF field values #2866
ewaninfo
started this conversation in
Advanced Custom Fields
Replies: 1 comment
-
@ewaninfo I too can get field added as a new where argument. Mine does return data, but not the correct data. Here is what I have:
This returns my markets but not by this field |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been following this article https://www.wpgraphql.com/2020/04/14/query-posts-based-on-advanced-custom-field-values-by-registering-a-custom-where-argument.
The new where arguments have been registered, but the query always returns an empty array.
Here is the query I'm trying to use:
The posts field is a 'post object' field and the tags field is a 'taxonomy' field. Both allow multiple values to be selected.
Any suggestions would be great thanks.
Beta Was this translation helpful? Give feedback.
All reactions