Created
August 4, 2015 09:40
-
-
Save bepatrickdavid/ca761c25bfc1216dfd9c to your computer and use it in GitHub Desktop.
WP: Query get posts meta query acf
This file contains hidden or 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( | |
| 'post_type' => 'documento', | |
| 'post_status' => 'publish', | |
| 'orderby'=> 'title', | |
| 'order' => 'ASC', | |
| 'meta_query' => array( | |
| array( | |
| 'key' => 'modulo', | |
| 'value' => '1', | |
| 'compare' => '==' | |
| ) | |
| )); | |
| $last_works = get_posts( $args ); ?> | |
| <?php foreach($last_works as $lw): ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment