Support

Home Forums Event Espresso Premium Way to create event search?

Way to create event search?

Posted: June 24, 2020 at 12:16 am

Viewing 6 reply threads


KGM_Adm

June 24, 2020 at 12:16 am

I want to create a search box where users can select multiple categories from a drop-down menu and it shows the events that fall under them. Additionally is it possible to also have search by words?


Tony

  • Support Staff

June 24, 2020 at 6:04 am

Hi there,

We don’t have any outputs that will fit your requirements, the closest we have for EE3 is the custom templates, table view template here:

https://eventespresso.com/product/custom-templates/

Or the category accordion template:

https://eventespresso.com/product/espresso-template-category-accordion/

You would need some custom development to create a template matching the above requirements.


KGM_Adm

June 24, 2020 at 3:38 pm

I am looking to custom develop the feature. Would this post apply to EE3?

Also thee event categories link don’t seem to work, I have a category caled Ages 8-11 with Unique Category Identifier: 8-11 but when I try to go to http://kidsgreatminds.org/courses/8-11 it says page not found.


Tony

  • Support Staff

June 25, 2020 at 6:00 am

I am looking to custom develop the feature. Would this post apply to EE3?

No, that thread applies to EE4.

EE4 events are a custom post type and so work in a vary similar way to ‘normal’ posts in WP.

EE3 events are totally separate and categories set on EE3 events are categories within EE3, not WordPress.

Also thee event categories link don’t seem to work, I have a category caled Ages 8-11 with Unique Category Identifier: 8-11 but when I try to go to http://kidsgreatminds.org/courses/8-11 it says page not found.

Those wont work on EE3, but even if you were using EE4 that’s the wrong URL, it would be:

http://kidsgreatminds.org/event-category/8-11/
(Again, the above won’t work with EE3)

To pull the categories from EE3 you would need something like:

$sql = "SELECT * FROM " . EVENTS_CATEGORY_TABLE;
$temp_cats = $wpdb->get_results($sql);

Then pull events using the identifier from the above.

The easest example of this is looking within the custom templates add-on for EE3.


KGM_Adm

July 14, 2020 at 8:17 am

Hi Tony,

I’ve upgraded to EE4 but I was wondering if I could use the ‘event-category’ in the url to show more than 2 categories. For example:

I have a parent category ‘All Ages’ and want to show all the children and a parent category ‘All sessions’ so I want the user to be able to chose multiple sessions such as Fall and Winter for their age of let’s say 8-11 year old. Would it be possible to do
http://kidsgreatminds.org/event-category/8-11+%5Bfall,winter%5D/
to show all events for ages 8-11 that run during fall or winter. I am not familiar with this feature so would love to know the right syntax if this is possible or how I could achieve this.

Thanks!


KGM_Adm

July 14, 2020 at 8:27 am

Noticed a mistake in the link should be:

http://kidsgreatminds.org/event-category/8-11+ (fall,winter)


Tony

  • Support Staff

July 20, 2020 at 10:13 am

Apologies for the delay, I did some digging into this.

You can’t use both AND with OR in the above as it is WordPress’s default rewrite rules so you’d need custom templates to run various queries to pull in the events you need rather than trying to apply them all through the URL.

It would likely be possible to do it through the main query (as you are trying to do now) but you’ll need your own custom rewrite rules to alter the query how you need.

Viewing 6 reply threads

The support post ‘Way to create event search?’ 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