Dropdown for both Locations and Event Category

Home Forums Calendar Products Events Calendar PRO Dropdown for both Locations and Event Category

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1390634
    fseonline
    Participant

    Hello,

    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

    #1392369

    Hi 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

    #1392413
    fseonline
    Participant

    Hi 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

    #1392619
    fseonline
    Participant

    Hi 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

    #1393503
    fseonline
    Participant

    Got that as well no worries!

    Had to do a quick search in the forums for it in fact.

    Kind regards,

    Mic

    #1393569

    Hi 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!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Dropdown for both Locations and Event Category’ is closed to new replies.