acf-to-rest-api icon indicating copy to clipboard operation
acf-to-rest-api copied to clipboard

How to query by ACF fields in the posts endpoint

Open db654 opened this issue 3 years ago • 0 comments

Added a simple checkbox field called restrict_to with a few values in ACF. I used this plugin to bring that field into the posts API which worked great but I can't seem to find any way to filter post results by the custom field value. Would be great if there was a way to use the custom field to include or exclude posts with certain values from the response. Is this possible?

db654 avatar Aug 31 '21 20:08 db654