TCI – Featured Partner Custom Query
// WP_Query arguments $args = array( 'post_type' => array( 'tci_partners' ), 'post_status' => array( 'published' ), 'posts_per_page' => '1', 'ignore_sticky_posts' => true, 'order' => 'DESC', 'orderby' => 'id', ); // The Query $featured = new WP_Query( $args ); // The Loop if ( $featured->have_posts() ) { while ( $featured->have_posts() ) { $featured->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();