post_content == '' )) : /* Don't list the child pages if the global $post variable is empty, which usually indicates it's not the standard WordPress pages */ if ( ! $post || function_exists('is_bbpress') && is_bbpress() ) return; /* Get the child pages */ $args = array( 'post_parent' => $post->ID, 'orderby' => 'menu_order title', 'order' => 'ASC', 'post_type' => 'page', 'posts_per_page' => -1 ); $pages = new WP_Query( apply_filters('graphene_child_pages_args', $args ) ); if ( $pages->have_posts() ) : ?>
have_posts() ) : $pages->the_post(); ?>
'; echo get_the_post_thumbnail( get_the_ID(), apply_filters( 'graphene_excerpt_thumbnail_size', 'thumbnail' ) ); echo '
'; } else { echo graphene_get_post_image( get_the_ID(), apply_filters( 'graphene_excerpt_thumbnail_size', 'thumbnail' ), 'excerpt' ); } ?>