WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Search Form won't work via template tags (2 posts)

  1. jkruger
    Member
    Posted 1 year ago #

    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/

  2. agelonwl
    Member
    Posted 1 year ago #

    Try template file at wp-content/plugins/events-manager/templates/templates/events-list.php

    For more info:
    http://wp-events-plugin.com/documentation/using-template-files/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic