Created
December 25, 2011 19:39
-
-
Save anonymous/1519651 to your computer and use it in GitHub Desktop.
Category Featured Query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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