orderby
and order
parameters of query_posts()
(in the first line). There are many useful values from which to choose, including category_name
and showposts
, thereby enabling virtually unlimited post-order customization.endif
statement to the end of the loop like this:is_category()
in that first line with the is_whatever()
statement of your choice:is_home()
is_single()
is_author()
is_search()
is_archive()