Custom Post Types with a common category for a blog listing

You are missing <?php endwhile; ?> before the end of content div. get_header(); $args = array(‘post_type’ => array(‘post’,’media-appearance’,’members-archive’,’money-saving-tips’,’review’), ‘posts_per_page’ => ’20’, ); $this_query = new WP_Query( $args ); ?> <div id=”primary” class=”site-content”> <div id=”content” role=”main”> <?php while ( $this_query->have_posts()) : $this_query->the_post(); {?> <?php if( has_post_thumbnail() && ($cat == ‘budget’) ): ?> <div class=”tip-excerpt”> <h1 class=”entry-title”> … Read more

Stuck in Order by more then one

You’ve got the unnecessary array involved around clauses. The correct code is ‘meta_query’ => array( ‘relation’ => ‘AND’, ‘awards_clause’ => array( // clause ‘key’ => ‘awards’, ‘compare’ => ‘EXISTS’, ), ‘points_clause’ => array( // clause ‘key’ => ‘points’, ‘compare’ => ‘EXISTS’, ), ), ‘orderby’ => array( ‘awards_clause’ => ‘DESC’, ‘points_clause’ => ‘DESC’, ),