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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 3 years, 1 month ago ago

Topic Tags

Tagged: ,

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!