WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Events Manager] Show search-box and events of only one category on page

[Resolved] [Plugin: Events Manager] Show search-box and events of only one category on page

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi, have you tried to modify template file @ events-search.php or events-list.php; to use templates – http://wp-events-plugin.com/documentation/using-template-files/

    Thanks for ultrafast response. Yes, I modified the events-search.php to show only categories of one language in the category-dropdown successfully. But I cannot figure out where to filter events list by category in the events-list.php Probably in this line?: echo EM_Events::output( $args );

    try something like

    $args['category'] = x; //where x is the category id e.g. $_REQUEST['category_id']
    echo EM_Events::output( $args );

    This works great, thanks a lot!

    One more question: is it possible to create a second page with searchbox and events for the other category/language?

    yes, try using shortcode in your wp pages
    e.g.
    [event_search_form]
    [events_list]

    then add conditions to events-search.php

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: Events Manager] Show search-box and events of only one category on page’ is closed to new replies.