Link to WPGraphQL on Github
Link to WPGraphQL on WordPress.org

Posts by mvaneijgen

Query posts based on Advanced Custom Field values by Registering a Custom “where” Argument

By mvaneijgen on April 14th, 2020

If you manage custom fields in WordPress using Advanced Custom Fields, and you want to use WPGraphQL to get a list of posts filtering by the ACF field value, you’ll need to implement a few things in your themes functions.php. Summary: Register a new “where” argument to the WPGraphQL Posts connection Filter the Posts connection …