Support

Home Forums Event Espresso Premium event search in sidebar

event search in sidebar

Posted: October 28, 2013 at 2:57 am


Nadir Al-Badri

October 28, 2013 at 2:57 am

Hello, how can i use the event search in a sidebar or in a widget?


Dean

October 28, 2013 at 3:06 am

Hi,

To use it in the sidebar template file you could use

<?php do_shortcode('[EVENT_SEARCH]'); ?>

If you wished to use the shortcode in a widget, you would need to allow WordPress to use shortcodes in widgets, see here http://digwp.com/2010/03/shortcodes-in-widgets/


Nadir Al-Badri

October 29, 2013 at 4:26 am

Wicked. That was to straight forward for me to find out …..

However the search itself is not very “powerful”. E.g. for search term “yoga” it does show me > 30 hits in the JS PopUp and in the message over the search field, but if i actually press the search button i get only two hits on the result page….


Dean

October 29, 2013 at 5:38 am

Hi,

The search is fairly basic, using the title and venue names. Are all of those listed items active events?


Nadir Al-Badri

October 29, 2013 at 6:20 am

Right. Could be releated to the fact i had to modify some things… Where do i find the source code for the search?


Dean

October 29, 2013 at 6:36 am

Hi,

The main shortcode is found in event-espresso/includes/shortcodes.php

The support post ‘event search in sidebar’ 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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Dean 6 years ago ago

Topic Tags

Tagged: , ,

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!
[for="input_96_5_3"]
[for="input_96_5_3"]
[gravityform id=96 title=false description=false]
  • This field is for validation purposes and should be left unchanged.
[i]
[i]
[gravityform id=69 title=false description=false]
  • This field is for validation purposes and should be left unchanged.