Using wp_list_categories() with show_count=1 more than 2 times gives errors
-
Hi,
In one of my templates I’m using the function wp_list_categories() a number of times. Out of nowhere I’m seeing the following error messages:
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/miguelnate/domains/allphrasesandquotes.com/public_html/wp-includes/taxonomy.php on line 2797 Warning: implode() [function.implode]: Invalid arguments passed in /home/miguelnate/domains/allphrasesandquotes.com/public_html/wp-includes/taxonomy.php on line 2797 Warning: Invalid argument supplied for foreach() in /home/miguelnate/domains/allphrasesandquotes.com/public_html/wp-includes/taxonomy.php on line 2804
I’ve been doing a bit of testing and it seems that the argument show_count=1 is causing this when the function is used 3 or more times on one page.
I couldn’t find this bug in Trac so I thought I post it here first before I submit this as a bug.
- The topic ‘Using wp_list_categories() with show_count=1 more than 2 times gives errors’ is closed to new replies.