Retrieve posts by custom field with WP-REST-API in Javascript

What is the right URL to retrieve posts by meta_query with the WP-REST-API?

The custom field I want to use can contain multiple values, I tried this for custom field which only can contain a single value and this works.

Read More

wp-json/posts?format=json&filter[meta_key]=content_type&filter[meta_value]=2

But I can’t get it work with a custom field which can contain multiple values (array/object). Anyone?

Related posts

Leave a Reply

1 comment