<ul id="quick-sub_pages" class="small-block-grid-1 medium-block-grid-3">
<?php global $dyanmic_featured_image; ?>
<?php global $post;
-// $image = get_the_post_thumbnail($post->ID);
-// echo $image;
- $args = array( 'post_parent' =>$post->ID, 'post_type' => 'page', 'numberposts' => -1, 'post_status' => 'any');
+ $args = array( 'post_parent' =>$post->ID, 'post_type' => 'page','orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => -1, 'post_status' => 'any');
$children = get_children($args);
foreach($children as $child){ ?>
<?php $images = $dynamic_featured_image->get_featured_images($child->ID); ?>
<?php foreach($images as $image){
$imageSrc = $image['full'];
}?>
-
- <?php $imageID = get_post_thumbnail_id($child->ID);
- // $imageSrc = wp_get_attachment_image_src($imageID, 'full'); ?>
- <?php $image = wp_get_attachment_image_src( $child->ID, 'landing_page', false ); ?>
-
<li class="small-text-center medium-text-left landing-item"><a href="<?php echo get_permalink($child->ID); ?>"><img src="<?php echo $imageSrc; ?>"><h5><?php echo $child->post_title ?></h5></a></li>
<?php $imageSrc = null; ?>
<?php } ?>