Created
October 15, 2014 09:13
-
-
Save mneuhaus/21a8396235b6f9e437d8 to your computer and use it in GitHub Desktop.
teaser subpages in wordpress
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 | |
| $loop = new WP_Query( array( 'post_type' => 'page', 'orderby' => 'title', 'order'=>'ASC','posts_per_page' => 99, 'post_parent' => get_the_ID()) ); | |
| while ( $loop->have_posts() ) : $loop->the_post(); | |
| ... | |
| endwhile; | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for saving me 20sec :) Wonder if it wouldn't be better to have there
'posts_per_page' => -1