Search code examples
wordpressgraphqladvanced-custom-fieldscustom-post-type

Wordpress Graphql - Can I filter by acf column?


I'm trying to filter my query result of spost (my cpt), but I can not find the option to filter by acf columns. Is there any way for WPGraphQL to filter result by acf?

My graphiql interface for "spost" (a custom post type)


Solution

  • There is no way to filter connection by ACF field, due to how costly this feature would be on the database. The only alternative at the moment is adding there parameter to connection using WPGraphQL connection API.

    https://docs.wpgraphql.com/extending/connections/