I want to pull all the children titles of certain page and put them as a link. This is what i got so far:
$my_wp_query = new WP_Query(); $all_wp_pages = $my_wp_query->query(array('post_type' => 'page')); // Get the page as an Object $oferta = get_page_by_title('Oferta'); // Filter through all pages and find Portfolio's children $all_children = get_page_children( $oferta->ID, $all_wp_pages ); echo '<pre>' . print_r( $_children, true ) . '</pre>';
Now, how can I get page titles from $all_children ?