[Resolved] Complex loop question (Show child pages of page on 2 columns)
I’m using the loop below to include all the child pages of the current static 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(); ?>
I’d love to split this automatically into 2 columns, with half of the child pages outputted to one column, and the remained to the other. (even if there were an odd number of them)
Can anyone advise on multiple loops? (I’m very stuck)
Thank you for your time.
- The topic ‘[Resolved] Complex loop question (Show child pages of page on 2 columns)’ is closed to new replies.