Support

Home Forums Event Espresso Premium Filter events based on categories using API

Filter events based on categories using API

Posted: September 13, 2016 at 2:27 am


rsthrive

September 13, 2016 at 2:27 am

Good Morning,

I’ve been attempting to make calls to the api to pull through only events with certain categories using:
http://localhost:8888/wp-json/ee/v4.8.36/events/?filter[where][EVT_Categories]=music&include=EVT_name

However, it does not seem to filter. 5 events are returned, but in the categories section, it shows only 3 events have the category ‘music’
categories list

Any help is really appreciated.


Josh

  • Support Staff

September 13, 2016 at 9:34 am

Hi there,

The correct syntax is:

http://localhost:8888/wp-json/ee/v4.8.36/events?where[Term_Taxonomy.term_id]=12&include=EVT_name

The support post ‘Filter events based on categories using API’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso