• Hi all,

    I done a fresh install, imported db and ran upgrade but for some reason my listing of authors no longer work.

    I use this : wp_list_authors ‘<?php wp_list_authors(‘optioncount=0&show_fullname=1&exclude_admin=0&hide_empty=1′); ?>’

    Anything wrong here?

    This is the error: Warning: Invalid argument supplied for foreach() in /public_html/news/wp-includes/template-functions-author.php on line 182

Viewing 5 replies - 1 through 5 (of 5 total)
  • Just so you know, the argument is the bit in parentheses: 'optioncount=0&show_fullname=1&exclude_admin=0&hide_empty=1'.

    That’s what’s causing the error. I don’t know how to fix it, but if you delete it, it will probably do something without throwing an error.

    But I just checked your site and it seems to be working (the names under the “Columnists” heading?).

    Nice design by the way ??

    Thread Starter elyonline

    (@elyonline)

    maerk,

    Yes that is the 1.52 version. I upgraded to version 2 but decided to use a test domain before committing. See here: https://www.elycity.info ??

    Thanks by the way ??

    Karl

    I get a MySQL database error when I visit that link. I suspect that therein lies the problem, but I know nothing about MySQL queries I’m afraid :/

    Do you have any plugins which put recent comments in the sidebar, or any that modify the author list in any way. That might be the problem.

    Thread Starter elyonline

    (@elyonline)

    yes for the recent comments and I am aware of that but the author tag is the standard one as per the codex.

    Thanks again for replying. Anyone know?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘wp_list_authors no longer works’ is closed to new replies.