child pages query ?
-
hey guys am using the below query to pull my child pages
<?php query_posts('post_type=page&post_parent='.$parent); ?> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> my content here <?php endwhile; ?> <?php wp_reset_query(); ?>
now the problem is when i click on a link of one of the child pages its not showing me the scorrect content rather the latest child page content under the parent page…how do i tweak the code ?
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘child pages query ?’ is closed to new replies.