Hi All
If I wish to orderby my wp aip endpoint:
wp-json/wp/v2/webinar
to my acf custom field:
start_time
and this does not work:
/wp-json/wp/v2/webinar?filter[orderby]=start_time&filter[order]=asc
My format is:
2023-01-23 20:00:00
What can I do?
Don’t think the filter param exists anymore. Also, the REST API doesn’t support the same orderby parameters as a regular WP query. It supports author, date, id, include, modified, parent, relevance, slug, include_slugs, title.
You likely would have better luck using something like rest_{$this->post_type}_query.