Created
May 11, 2014 13:39
-
-
Save flegfleg/664f24ff44997781a9d3 to your computer and use it in GitHub Desktop.
use 'post_parent' => 0 in WP_Query to return only parent posts
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
$slider_query = new WP_Query( array( 'post_type' => 'wlw_projekte', 'orderby' => 'menu_order title', 'order' => 'DESC', 'post_parent' => 0 )); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment