• Henry

    (@henrywright-1)


    When I use wp_list_pages() in a page template, I seem to be getting a whole load of PHP warnings appear.

    I’ve got debug on in my wp-config.php file define('WP_DEBUG', true);

    Anyone else seeing this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I don’t – it works fine for me using default WordPress Twenty Thirteen theme.

    Could you post the errors? It’s quite possibly your theme or a plugin. (try disabling all plugins and switching to a default WordPress theme to verify)

    Thread Starter Henry

    (@henrywright-1)

    Actually there were less warnings than I thought. 2 warnings were being thrown for each item in the list.

    These are the two warnings I am getting.

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘my_css_attributes_filter’ not found or invalid function name in /wp-includes/plugin.php on line 173

    Warning: implode(): Invalid arguments passed in /wp-includes/post-template.php on line 1057

    Just tried on a different site which uses a different theme and no warnings appeared. Not really a big issue as I am now running a loop using WP_Query()

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_list_pages() and throwing PHP warnings’ is closed to new replies.