Thank you for the responses.
@agelonwl, yes I am using events-list.php.
I realized the problem is due to further modifications that I am trying to work in with $output. I reloaded a fresh install this morning just to make sure I was testing properly and results were normal.
If I increase the default limit to something really high I have no problems. So a lower limit was dividing my results up strangely per-page because of the modifications.
@marcus, what I need to accomplish, I dont think exists for functionality as far as what I have read in forums. FYI- I am displaying hours of operation for appx 45 locations that are open all year. Treating each location as an event.
I need to display events on one page in groups by category and have them be searchable. ie…
Search Form
A-Eventlist
B-Eventlist
C-Eventlist
D-Eventlist
Ideally I’d like to use shortcodes but the [event_search_form] appears to have no effect on something like [events_list category=”86″ scope=”today”] in the event page. Is there a way to hook the short code for the search form into the short codes in the event page? That would solve all my dilemmas.
Please dont be too hard on my work here.:) Just trying to work it out…
What I ended up doing was creating custom placeholders A,B,C,D.
Example for A:
add_filter('em_event_output_placeholder','mygroup_em_placeholder',1,3);
function mygroup_em_placeholder($replace, $EM_Event, $result){
if ( $result == '#_MYGROUP' ) {
ob_start();
$template = em_locate_template('placeholders/mygroup.php', true, array('EM_Event'=>$EM_Event));
$replace = ob_get_clean();
}
return $replace;
}
and in mygroup.php
$mygroups = $wpdb->get_results("SELECT * FROM wp_terms WHERE term_group = 111 AND name = '$eventname'");
foreach($mygroups as $mygroup):
echo '<div id="location"><div class="name"><a href="'. $eventurl.'">' .$mygroup->name.'</a></div><div class="time">'.$starttime.' - '.$endtime.'</div><div class="location">'.$location.'</div></div>';
endforeach;
Modified Admin/em_optioins.php to allow 3 new formats, ie format2, format 3 and format 4 ( I know this is where it gets a little crazy)
em_options_textarea ( __( 'Default event list format', 'dbem' ), 'dbem_event_list_item_format2', __( 'The format of any events in a list.', 'dbem' ).$events_placeholder_tip );
and same for _format3, _format4. Created tables in the database accordingly.
Then modified classes/em_events.php to include the new formats and also added additional outputs 2,3,4
$format = ( empty($args['format']) ) ? get_option( 'dbem_event_list_item_format' ) : $args['format'] ;
$format2 = ( empty($args['format']) ) ? get_option( 'dbem_event_list_item_format_2' ) : $args['format'] ;
$format3 = ( empty($args['format']) ) ? get_option( 'dbem_event_list_item_format_3' ) : $args['format'] ;
$format4 = ( empty($args['format']) ) ? get_option( 'dbem_event_list_item_format_4' ) : $args['format'] ;
And
$output = "";
$events = apply_filters('em_events_output_events', $events);
if ( $events_count > 0 ) {
foreach ( $events as $EM_Event ) {
$output .= $EM_Event->output($format);
$output2 .= $EM_Event->output($format2);
$output3 .= $EM_Event->output($format3);
$output4 .= $EM_Event->output($format4);
}
I didnt need to add headers for each output.
I’m sure you both can think of a cleaner way to accomplish this.
All of the mods actually work great except for the break in the search result as described in my original post.
Any help would be much appreciated. We are testing this software out for our uses but would be very willing to upgrade to pro if you think we can accomplish our goal.