Locationcount
-
Hi,
I used this code and the placeholder (#_CATEGORYEVENTCOUNT) to add the eventcount to the categories pages and I would also like to do this for the locations pages, but I can’t figure out how.
/*
NOTE:
Paste in your theme functions.php
*/
add_filter(’em_category_output_placeholder’,’my_em_mod_category_event_count’,1,3);
function my_em_mod_category_event_count($replace, $EM_Category, $result){
switch( $result ){
case ‘#_CATEGORYEVENTCOUNT’:
$replace = EM_Events::count( array(‘category’=>$EM_Category->term_id,’scope’=>’future’) );
break;
}
return $replace;
}
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Locationcount’ is closed to new replies.