Advertisement
Beee

list events with functioned format

Jan 26th, 2018
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. <?php
  2.         $format_header = em_format_header( 'Country', 1 );
  3.         $format_item   = em_format_item();
  4.         $format_footer = em_format_footer();
  5.  
  6.         // get events for this month
  7.         $context[ 'format_header' ] = $format_header;
  8.         $context[ 'format_footer' ] = $format_footer;
  9.         $context[ 'this_month' ]    = EM_Events::get( array(
  10.             'format_header' => $format_header,
  11.             'format'        => $format_item,
  12.             'format_footer' => $format_footer,
  13.             'limit'         => 0,
  14.             'orderby'       => 'event_start_date,event_start_time,event_name',
  15.             'scope'         => 'this-month'
  16.         ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement