‘destinations’, // Custom post type ‘posts_per_page’ => -1, // Retrieve all posts ‘post_status’ => ‘publish’, // Only published posts ‘orderby’ => ‘title’, // Order by title ‘order’ => ‘ASC’, // Ascending order ); $query = new WP_Query($args); if ($query->have_posts()) { echo ‘‘; } else { echo ‘No destinations found.’; } // Restore original post data wp_reset_postdata(); ?>