I've got a problem, I display posts in wordpress ordered by title in ascending order, but what I want is to display first letter of group of posts, I mean
A: Annanas
Apple
Almond
B: Banana
G: Grape
I don't know how to implement something like this in standard loop
<?php query_posts( array ( 'category_name' => 'publishers', 'orderby' => 'title', 'order' => 'ASC' ) ); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<li>
<?php the_title(); ?>
</li>
<?php endwhile; endif; wp_reset_query(); ?>
I'd be very happy if somebody can help me…
Take care and have a nice day!