Home » Malattie » Alzheimer e altre Demenze

[insert_php]
// use wp_list_pages to display parent and all child pages all generations (a tree with parent)
$parent = 241;
$args=array(
‘child_of’ => $parent
);
$pages = get_pages($args);
if ($pages) {
$pageids = array();
foreach ($pages as $page) {
$pageids[]= $page->ID;
}

$args=array(
‘title_li’ => ‘Indice’,
‘include’ => $parent . ‘,’ . implode(“,”, $pageids)
);
wp_list_pages($args);
}
[/insert_php]