wp_list_authors no longer works (6 posts)

  1. elyonline
    Posted 9 years ago #

    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

  2. maerk
    Posted 9 years ago #

    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?).

  3. maerk
    Posted 9 years ago #

    Nice design by the way ;)

  4. elyonline
    Posted 9 years ago #


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

    Thanks by the way :)


  5. maerk
    Posted 9 years ago #

    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.

  6. elyonline
    Posted 9 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.