WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Using wp_list_categories() with show_count=1 more than 2 times gives errors (1 post)

  1. Jerry G. Rietveld
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic