Support

Home Forums Event Espresso Premium Way to create event search?

Way to create event search?

Posted: June 24, 2020 at 12:16 am


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.

You must be logged in to reply to this support post. Sign In or Register for an Account

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: publish

Updated by  Tony 2 months, 1 week ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!
[gravityform id=80 title=false description=false ajax=false]
<div class='gf_browser_unknown gform_wrapper' id='gform_wrapper_80' ><form method='post' enctype='multipart/form-data' id='gform_80' action='/topic/way-to-create-event-search/'> <div class='gform_body'><ul id='gform_fields_80' class='gform_fields top_label form_sublabel_below description_below'><li id='field_80_1' class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_80_1' >First name<span class='gfield_required'>*</span></label><div class='ginput_container ginput_container_text'><input name='input_1' id='input_80_1' type='text' value='' class='medium' aria-required="true" aria-invalid="false" /></div></li><li id='field_80_2' class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_80_2' >Email address<span class='gfield_required'>*</span></label><div class='ginput_container ginput_container_email'> <input name='input_2' id='input_80_2' type='email' value='' class='medium' aria-required="true" aria-invalid="false" /> </div></li><li id='field_80_3' class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' >GDPR Agreement<span class='gfield_required'>*</span></label><div class='ginput_container ginput_container_checkbox'><ul class='gfield_checkbox' id='input_80_3'><li class='gchoice_80_3_1'> <input name='input_3.1' type='checkbox' value='I consent to have this website store my submitted information so they can respond to my inquiry.' id='choice_80_3_1' /> <label for='choice_80_3_1' id='label_80_3_1'>I consent to have this website store my submitted information so they can respond to my inquiry.</label> </li></ul></div></li><li id='field_80_4' class='gfield gform_validation_container field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_80_4' >Name</label><div class='ginput_container'><input name='input_4' id='input_80_4' type='text' value='' autocomplete='off'/></div><div class='gfield_description' id='gfield_description_80_4'>This field is for validation purposes and should be left unchanged.</div></li> </ul></div> <div class='gform_footer top_label'> <input type='submit' id='gform_submit_button_80' class='gform_button button' value='Download Now' onclick='if(window["gf_submitting_80"]){return false;} if( !jQuery("#gform_80")[0].checkValidity || jQuery("#gform_80")[0].checkValidity()){window["gf_submitting_80"]=true;} ' onkeypress='if( event.keyCode == 13 ){ if(window["gf_submitting_80"]){return false;} if( !jQuery("#gform_80")[0].checkValidity || jQuery("#gform_80")[0].checkValidity()){window["gf_submitting_80"]=true;} jQuery("#gform_80").trigger("submit",[true]); }' /> <input type='hidden' class='gform_hidden' name='is_submit_80' value='1' /> <input type='hidden' class='gform_hidden' name='gform_submit' value='80' /> <input type='hidden' class='gform_hidden' name='gform_unique_id' value='' /> <input type='hidden' class='gform_hidden' name='state_80' value='WyJbXSIsIjBiNjdjZjkyMDUzOWUxOWY5Y2NiZjIwMzM4YjA1Mjk4Il0=' /> <input type='hidden' class='gform_hidden' name='gform_target_page_number_80' id='gform_target_page_number_80' value='0' /> <input type='hidden' class='gform_hidden' name='gform_source_page_number_80' id='gform_source_page_number_80' value='1' /> <input type='hidden' name='gform_field_values' value='' /> </div> </form> </div><script type='text/javascript'> jQuery(document).bind('gform_post_render', function(event, formId, currentPage){if(formId == 80) {} } );jQuery(document).bind('gform_post_conditional_logic', function(event, formId, fields, isInit){} );</script><script type='text/javascript'> jQuery(document).ready(function(){jQuery(document).trigger('gform_post_render', [80, 1]) } ); </script>
[i]
[i]