Show only one post on custom post type archive
Please thoroughly read the WP_Query docs, especially that part about post types. Means you need to pass the query the post type you want to query: $args = array( ‘post_type’ => ‘my_custom_post_type’, ‘posts_per_page’ => 1, ); $query = new WP_Query( $args ); Even better it would be to simply override the existing query for that … Read more