I have an array and I'm getting the results as list elements. -- What I'm trying to do though is to count the total number of items and have it split so that one list would appear on the left (via CSS of course) and the other half on the right.
My code thus far is below...
<?php
$terms = get_field('featured_cities');
foreach ($terms as $term) {
echo '<li><a href="'.get_term_link($term->slug, 'cities').'">'.$term->name.'</a></li>';
}
?>
Is it possible someone could point me in the direction of getting this done?