WordPress Query Orderby Name

query_posts( array(
 'post_type' => 'page',
 'posts_per_page' => -1,
 'orderby' => 'title',
 'order' => 'ASC'
) );

Leave a Comment