Example :
About
--- technical
--- medical
--- historical
--- geographical
--- political
how to create a function like this ?
function get_child_pages_by_parent_title($title)
{
// the code goes here
}
and calling it like this which will return me an array full of objects.
$children = get_child_pages_by_parent_title('About');
You can use this, it does work on page ID rather then title, if you really need page title, I can fix it, but ID is more stable.
It’s all documented here:
http://codex.wordpress.org/Class_Reference/WP_Query