Broken pages implementation
-
I had Pages working (seemingly) fine on my fresh 1.5 installation. However, when I created a multi-page post(with <!–nextpage–>), the wp_list_pages() function decided to vomit all over my site for no apparent reason. My call to the function is as follows:
<?php wp_list_pages('title_li='); ?>
The error it gave me was:
Warning: Invalid argument supplied for foreach() in /my/long/path/to/wp-includes/template-functions-post.php on line 369It is now 2AM, I have spent 3 hours trying to figure this out (I consider myself an adequate PHP programmer), but to no avail. I’m ready to pull my toenails off with a pair of rusty pliers.
Someone, please tell me why WP isn’t acting like it should. Yes, I know that there is an issue with the array… the bigger question is WHY is there an issue with the array — and better yet, what can I do to fix it?
The topic ‘Broken pages implementation’ is closed to new replies.