im building some navigation an need a loop for that …
i think that a good option would be to use the wp_query loop …
linke this kinda
(<?php $page_query = new WP_Query(‘post_type=page’); ?>
<?php while ($page_query->have_posts()) : $page_query->the_post(); ?>)
but i dont know how to put it that i only get MAIN PAGES?
thanks so far
- The topic ‘wp_query which gives only main pages’ is closed to new replies.