I have a problem where I cannot get the page list function to work correctly. It works on my local setup but when I put it live it either fails silently on the parent page, and then on child pages it gives me this error:
Warning: Invalid argument supplied for foreach() in /home/path_to_site/wp-includes/template-functions-post.php on line 368
Array
(
[depth] => 0
[show_date] =>
[child_of] => 0
[title_li] => Pages
)
Array
(
[8] => Array
(
[title] =>
[name] => privacy
)
[7] => Array
(
[children] => Array
(
[0] => 8
)
)
)
I am stumped by this - like I said it works fine running locally.