Tag Archives: display child pages title

display child pages title,excerpt of current parent page at wordpress

<?php $child_pages = $wpdb->get_results(“SELECT *  FROM $wpdb->posts WHERE post_parent = “.$post->ID.”   AND post_type = ‘page’ ORDER BY menu_order”, ‘OBJECT’); ?> <?php if ( $child_pages ) : foreach ( $child_pages as $pageChild ) : setup_postdata( $pageChild ); ?> <h2 class=”subpagetitle”><a href=”<?php … Continue reading

Posted in wordpress | Tagged ,