Last active
August 29, 2015 14:15
-
-
Save KimBranzell/30b8ee4b1d848dc92b4e to your computer and use it in GitHub Desktop.
For when you want to loop and display posts based on the value of a checkbox.
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( | |
'meta_key' =>'your_checkboxkey', | |
'meta_value'=>'1' | |
); | |
$the_query = new WP_Query( $args ); | |
?> | |
<!-- Loop continues here --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment