akide
Forum Replies Created
-
@angelo_nwl Please, can You help me?
I have one problem with this function.
When I look at event page I’cant no more have pagination (1,2,3,4, etc.) at the bottom of the list. I have removed ‘limit’=>10, in the code but now I see a list too much long with all past events.
( http://nuovosito.angelipierre.it/eventi/pista-commerciale-e-pista-latina-coconuts-rimini/ )
Maybe you can help me to add pagination?
Thank you.Thank you very much! I solved with this:
add_filter('em_location_output_placeholder','my_em_placeholder_mod',1,3); function my_em_placeholder_mod($replace, $EM_Location, $result){ switch( $result ){ case '#_LOCATIONPASTEVENTS': $events = EM_Events::get( array('location'=>$EM_Location->location_id, 'scope'=>'past', 'limit'=>10, 'order'=>'DESC', 'orderby'=>'event_start_date') ); if ( count($events) > 0 ){ $replace = get_option('dbem_location_event_list_item_header_format'); foreach($events as $event){ $replace .= $event->output(get_option('dbem_location_event_list_item_format')); } $replace .= get_option('dbem_location_event_list_item_footer_format'); } else { $replace = get_option('dbem_location_no_events_message'); } break; } return $replace; }Please can someone help me?
Thank you.
I’m not a programmer but I’ll try to see if I understand something in that code.Hi, I use this shortcode:
[events_list scope=”today” country=”IT”]#_EVENTLINK avrà luogo al #_LOCATIONLINK il #_EVENTDATES #_EVENTTIMES
[/events_list]
Thanks for the reply.
I don’t understand why but it doesn’t work even when the function is active.