Formatting queries
-
Hi all,
I’m trying to display all posts alphabetically. I’ve managed to work something out, but can’t figure out how to get it formatted nicely.
< ?php if (have_posts()) :
while (have_posts()) : the_post();
the_title();
endwhile;
endif;
query_posts('category_id=1&orderby=title&order=ASC&posts_per_page=-1');
if (have_posts()) :
while (have_posts()) : the_post();
the_title();
endwhile;
endif; ?>
I just want to break or li after each result, and have each result linked. Possible? Plausible? Too much like work?
Cheers!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Formatting queries’ is closed to new replies.