[Plugin: Events Manager] Get Locations outputs repeats
-
Using the below the array outputs repeats for the regions. How can I only display the region once? Using array_unique wont work as EM_Locations is a class? Do I have to modify EM_Locations completely to do this?
<?php foreach(EM_Locations::get(array('orderby'=>'location_region')) as $EM_Region): ?> <a href="<?php echo home_url(); ?>/events/category/<?php echo strtolower($EM_Category->region); ?>" class="browse-reg browse-reg-grey"> <span><strong><?php echo $EM_Region->region; ?></strong></span><img src="<?php echo THEME_URL; ?>/images/box_arrow.png" alt="arrow" height="15" width="15"> </a> <?php endforeach; ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Events Manager] Get Locations outputs repeats’ is closed to new replies.