Skip to content

Instantly share code, notes, and snippets.

Created Dec 25, 2011
Embed
What would you like to do?
Category Featured Query
<?php
$args = array(
'cat' => get_query_var( 'cat' ),
'posts_per_page' => '-1',
'meta_query' => array(
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