Get custom code for parent page wordpress

Posted: January 27, 2015 in All Category

$mypages = get_pages( array( 'child_of' => $page-id, 'sort_column' => 'post_date', 'sort_order' => 'asc' ) );
 
	foreach($mypages as $page) {
          
        echo get_the_post_thumbnail( $page->ID, 'small-thumb' );
        echo get_page_link( $page->ID );
        echo $page->post_title;    
    
    }

Advertisements

Comments are closed.