Looping of child Pages
-
I am using this code to generate contents from the child of that parent Page:
<?php $posts = @$wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_status='static' AND post_parent='$pageID' ORDER BY post_title ASC"); if($posts) : foreach($posts as $post) : start_wp(); ?>
As the number of children Pages are growing, is there a way such that I can create pages of that list after X number of child Pages are listed?
thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Looping of child Pages’ is closed to new replies.