'page', 'meta_query' => array( array( 'key' => 'show_in_footer', 'value' => '1', 'compare' => '==', // not really needed, this is the default ) ), ); $footerItems = new WP_Query( $wpQuery ); $footerItems = $footerItems->posts; } else { $seperatePage = false; } ?>