Yes, that’s what I want.
Now my PHP skills is not going that far to add this in my code.
Can you do that for me please?
Thanks!
<?php
if($post->post_parent) {
$children = wp_list_pages("depth=2<?php echo $exclude;?>&title_li=&child_of=".$post->post_parent."&echo=0");
$titlenamer = get_the_title($post->post_parent);
}
else {
$children = wp_list_pages("depth=2&title_li=&child_of=".$post->ID."&echo=0");
$titlenamer = get_the_title($post->ID);
}
if ($children) { ?>