Created
July 3, 2015 09:26
-
-
Save remyzv/36d017c526172c5bb972 to your computer and use it in GitHub Desktop.
WP - Dans la meme categorie - Request
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
$args = array( | |
'post_type' => 'objectif_nutrition', | |
'posts_per_page' => -1, | |
'post__not_in' => array($post_id), | |
'orderby' => 'rand', | |
'post_parent' => $parent_id | |
); | |
$loop = new WP_Query( $args ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment