WordPress.org

Support

Support » Plugins and Hacks » wp_query which gives only main pages

wp_query which gives only main pages

  • hello …

    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?

    any ideas

    thanks so far

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘wp_query which gives only main pages’ is closed to new replies.
Skip to toolbar