2012-04-27, 14:07:25
Can anyone suggest a PHP snippet that will test if the current page has children?
My aim is to make a section of my template conditional on the page having children:
if has children
...some content
else
...some other content
Thanks.
My aim is to make a section of my template conditional on the page having children:
if has children
...some content
else
...some other content
Thanks.