Writing custom queries to display events using the Events Manager plugin for WordPress