Hi, is there a way to call a list of all event categories? I want to automatically call all event categories and then assign a custom URL to them (ie /events/?cat=catname) that will automatically load a page of all applicable events (I have that bit covered).
Any ideas on how we can call the list of cats please?
I then created a new page template (page-event-cat.php), assigned it to a new page and place the following in the template (mine is outside the “while” for the page content):
Well spotted! Or I would normally use $wpdb->prefix to call the table prefit ahead of the table name. Is EVENTS_CATEGORY_TABLE a variable built in to event espresso? Is there a list of these anywhere for future reference?
Yeah, all of Event Espresso’s database tables are defined in espresso.php. If you look on line 246 in the current version you’ll see all them defined there.
Viewing 4 reply threads
The support post ‘Calling a list of all event categories’ 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.