Support

Home Forums Event Espresso Premium event search in sidebar

event search in sidebar

Posted: October 28, 2013 at 2:57 am

Viewing 5 reply threads


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

    • Support Staff

    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

      • Support Staff

      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

        • Support Staff

        October 29, 2013 at 6:36 am

        Hi,

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

        Viewing 5 reply threads

        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.

        Event Espresso - Staging Server