Limiting Number of Events Shown In Category
-
I’m currently working on this site, testbuzz.illinimedia.com, having the main navigation be the event categories for the different events.
As you can see on this category page, the page holding some 30+ events (from what I could tell, since it has a lot of events in this category).
I’ve tried the following:
- Going into Events > Settings > Pages > Event List, going to the bottom and inputting 10 as the Events List Limit
- Going into Events > Settings > Formatting > Event Categories, inputting
[events_list limit="10"]#_CATEGORYNEXTEVENTS[/events_list]
into the Single category page format - Copying the categories-list.php file and changing the following line from this:
$args['limit'] = get_option('dbem_categories_default_limit');
to this:$args['limit'] = '10';
I can’t find anywhere in the code where the
dbem_categories_default_limit
variable would be declared so I can change this in here. Or, is there an easier way to write in the categories-list.php file the limit?Also, below is the initial code for the categories-list.php file:
$args = apply_filters('em_content_categories_args', $args); $categories = EM_Categories::get( $args ); //$args['limit'] = '10'; $args['limit'] = get_option('dbem_categories_default_limit'); $args['page'] = (!empty($_REQUEST['pno']) && is_numeric($_REQUEST['pno']) )? $_REQUEST['pno'] : 1; if( count($categories) > 0 ){ echo EM_Categories::output( $categories, $args ); }else{ echo get_option ( 'dbem_no_categories_message' ); }
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Limiting Number of Events Shown In Category’ is closed to new replies.