Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Category Featured Query
$args = array(
'cat' => get_query_var( 'cat' ),
'posts_per_page' => '-1',
'meta_query' => array(
'key' => 'be_category_featured',
'value' => 'on'
$featured = new WP_Query( $args );
if( $featured->have_posts() ): while( $featured->have_posts() ): $featured->the_post();
post information goes here
endwhile; endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment