I’ve got a loop here and I was wondering if I can modify this so that the child pages show up in a specific order. Right now I think they appear in alphabetical order. It doesnt seem to listen to the order numbers that I specify in the wordpress admin. Any help would be great. Here is my code:
<?php $pages = get_pages(array('child_of' => 5)); ?> <?php foreach ($pages as $page): ?> <div class="threecol"> <a href="<?php echo get_permalink($page->ID); ?>"> <?php echo get_the_post_thumbnail($page->ID, array(250,200)); ?></a> <h4><a href="<?php echo get_permalink($page->ID); ?>"> <?=$page->post_title?></a></h4> <p><?=$page->post_content?></p> </div> <?php endforeach; ?>
- The topic ‘Loop Order?’ is closed to new replies.