Support » Plugin: Events Manager - Calendar, Bookings, Tickets, and more! » Events Count for search query

Viewing 4 replies - 1 through 4 (of 4 total)
  • Philip John

    (@philipjohn)

    Hiya,

    There is, but you’d need to do this with custom coding by editing the template that outputs the search results…

    Thanks

    Thread Starter tkhan

    (@tkhan)

    Hi,

    Have been looking through the templates is it the events-list.php? if so all I can see is the events output argument.

    Is there a way to pass a search argument to ‘EM_Events::count( )’ or an array that I could do a foreach loop on to get the results count.

    Any help or pointers would be much appreciated.

    Cheers

    caimin_nwl

    (@caimin_nwl)

    I think you’d need to run a manual query to get that info, or set an incrementing variable as the events are looped through to count and then output everything at the end.

    Thread Starter tkhan

    (@tkhan)

    Hi,

    Thanks for the pointers eventually managed to work it out using
    ‘$events = EM_Events::get($args);’ and then using a foreach loop with an incrementing variable.

    Thanks Again.

    Tkhan

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Events Count for search query’ is closed to new replies.