[raw]

All Providers For [/raw][php]
global $post;
$ID = $post->ID;
echo get_the_title($ID);[/php][raw]:

[/raw]

[php]
global $post;
$pg = $post->ID;
// Set up the objects needed
$my_wp_query = new WP_Query();
$all_wp_pages = $my_wp_query->query(array(‘post_type’ => ‘page’, ‘posts_per_page’ => -1));

// Get the page as an Object
$portfolio = get_page_by_title(‘Find A Provider’);

// Filter through all pages and find Portfolio’s children
$portfolio_children = get_page_children($pg, $all_wp_pages);

$pro = array();
// echo what we get back from WP to the browser
foreach($portfolio_children as $c){
if($c->post_status != ‘private’){

$title = $c->post_title;
$guid = $c->guid;
$pro[$guid] = $title;

}
}
asort($pro);

foreach($pro as $key => $value){

echo “[h2][a href=”.$key.”]”.$value.'[/a][/h2]’;

}
[/php]
[raw]

[/raw]