function end_prev_letter() { end_prev_row(); echo "</div><!-- End of letter-group -->\n"; echo "<div class='clear'></div>\n"; }
$mam_global_where = ''; // Turn off filter if (have_posts()) { $in_this_row = 0; while (have_posts()) { the_post(); $first_letter = strtoupper(substr(apply_filters('the_title', $post->post_title), 0, 1)); if ($first_letter != $curr_letter) { if (++$post_count > 1) { end_prev_letter(); } start_new_letter($first_letter); $curr_letter = $first_letter; } if (++$in_this_row > $posts_per_row) { end_prev_row(); start_new_row(); ++$in_this_row; // Account for this first post } ?> <div class="title-cell col-lg-3"> <a href="<?php the_permalink(); ?> " rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?> "><?php the_title(); ?>