<?php get_header(); ?> <div id="content"> <ul> <?php // show all posts in // artworks sorted alphabetically $args = array( 'posts_per_page' => -1, 'orderby'=> 'title', 'order' => 'ASC' ); $artposts = get_posts( $args ); // here comes The Loop! foreach( $artposts as $post ) : setup_postdata($post); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?> </ul>