Show only oldest post by author
-
I’m hacking around with a complicated configuration that involves custom post types and custom taxonomies in a multi-author environment (but not WPMU).
I am creating an archive template for the custom post type, and I want to set it up so that if an author has created more than one post, it should only show the oldest one.
My current loop looks like this
$args = array ('post_type' => 'ticketlisting', 'posts_per_page' => 50, 'tax_query' => array (array ( 'taxonomy' => 'tier', 'field' => 'slug', 'terms' => 'goldstar' ) ) ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); the_title(); echo '<div class="entry-content">'; $post_id = get_the_ID(); /* show post content here */ echo '</div>'; endwhile;
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Show only oldest post by author’ is closed to new replies.