sakyastelios
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
I resolve it. I find the value in wp_options table in the WordPress database
I believe that put two arguments on scope is for date intervals. You can try only scope=”future”
I do it installing Buddypress and a user can see “My events” on members/name-of-the-user/events/
How do you show the map? With shortcodes?
Can you write here the shortcode that are you using?I write the next code, but I’m not sure where can I put it. I added it to the bottom of events-manager/buddypress/bm-em-groups.php only for testing.
function bp_em_sakya_events_build_sql_conditions( $conditions, $args ){ if( !empty($args['skperiodo']) && is_numeric($args['skperiodo']) ){ $conditions['skperiodo'] = "( DATEDIFF( event_end_date , event_start_date ) = $args['skperiodo'] )"; } return $conditions; } add_filter('em_events_build_sql_conditions','bp_em_sakya_events_build_sql_conditions',1,2); function bp_em_sakya_events_accepted_searches($searches){ $searches[] = 'skperiodo'; return $searches; } add_filter('em_accepted_searches','bp_em_sakya_events_accepted_searches',1,1); function bp_em_sakya_events_get_default_search($searches, $array){ if( !empty($array['skperiodo']) && is_numeric($array['skperiodo']) ){ $searches['skperiodo'] = $array['skperiodo']; } return $searches; } add_filter('em_events_get_default_search','bp_em_sakya_events_get_default_search',1,2);
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Widget FormattingHow can I customize the labels for submit an event?
Viewing 6 replies - 1 through 6 (of 6 total)