Support » Plugin: Events Manager » Search Form won't work via template tags

  • Resolved jkruger

    (@jkruger)


    I am trying to create a custom events page via template tags located in em-template-tags.php. I cannot get the search form to return any results like it will in the default mode (via the_content). It simply seems to reload the page without querying anything. Here is my code so far in my template:

    <?php
    if (class_exists('EM_Events')) {
        echo em_event_search_form();
        echo EM_Events::output(array(
            'limit' => 10,
            'orderby' => 'name',
            'search' => '',
            'format' => '<div style="color:#fff;">#_NAME</div>'
        ));
    
    }
    ?>

    http://wordpress.org/extend/plugins/events-manager/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Search Form won't work via template tags’ is closed to new replies.