Home › Forums › Calendar Products › Events Calendar PRO › Dropdown for both Locations and Event Category
- This topic has 6 replies, 2 voices, and was last updated 8 years, 5 months ago by
fseonline.
-
AuthorPosts
-
November 24, 2017 at 6:47 am #1390634
fseonline
ParticipantHello,
May I ask what it entails to have a form with a dropdown ‘Locations’ and ‘Event Category’ (and a Search button) please?
I believe it makes use of the API?Or is there already a feature that we can search using Location and Event Category?
Kind regards,
Mic
November 27, 2017 at 6:41 am #1392369Jaime Marchwinski
KeymasterHi Mic,
Thanks so much for reaching out!
It sounds like you may be interested in our Filter Bar plugin. With this plugin, you have the option to add locations, event categories, and other filters to your Search Bar at the top of your calendar.
You can check it out on our demo site here.
Let me know what you think and if you have any other questions about it!
Thanks,
Jaime
November 27, 2017 at 7:21 am #1392413fseonline
ParticipantHi Jaime,
Thank you for your reply.
I feel like I could instead make use of just the keywords no need for additional fields. But it doesn’t seem to be working properly?
May I ask if you have a guide on how to ‘feed’ a different search bar with Query Parameters please? I have the Events PRO plugin with me.
I understand how to make use of a WordPress default search bar and use the plugin’s query parameters, but it doesn’t seem to be working 100%?
/courses/?tribe-bar-search=ilford&tribe_paged=1&tribe_event_display=list&tribe-bar-search=Issue is that there’s another ‘tribe-bar-search’ with a blank value?
Code of 2nd search bar:
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/courses/' ) ); ?>"> <label for="<?php echo $unique_id; ?>"> <span class="screen-reader-text"><?php echo _x( 'Search for:', 'label', 'twentyseventeen' ); ?></span> </label> <input type="text" name="tribe-bar-search" id="tribe-bar-search" value="<?php echo get_search_query(); ?>" placeholder="Keyword"> <input type="hidden" value="1" name="tribe_paged" /> <input type="hidden" value="list" name="tribe_event_display" /> <input type="hidden" value="<?php echo get_search_query(); ?>" name="tribe-bar-search" /> <button type="submit" class="search-submit"><span class="screen-reader-text"><?php echo _x( 'Search', 'submit button', 'twentyseventeen' ); ?></span></button> </form>Hope this isn’t custom, as I’m only asking if you have a way for us to communicate to the plugin’s search keywords please?
Kind regards,
Mic
November 27, 2017 at 9:03 am #1392619fseonline
ParticipantHi Jaime,
I was able to get it working with the keyword search! Yes!
But may I ask how to Output list of available ‘Event categories’?
Kind regards,
Mic
November 28, 2017 at 1:54 am #1393503fseonline
ParticipantGot that as well no worries!
Had to do a quick search in the forums for it in fact.
Kind regards,
Mic
November 28, 2017 at 4:26 am #1393569Jaime Marchwinski
KeymasterHi Mic,
Glad you were able to figure it out, you are welcome back in our support forums any time!
For now, I am going to close this thread.
Have a great week!
-
AuthorPosts
- The topic ‘Dropdown for both Locations and Event Category’ is closed to new replies.
