WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can't get a list of authors to appear in sidebar via a Widget (4 posts)

  1. billdennis5
    Member
    Posted 7 years ago #

    I'm trying to run a list of my site's authors on my sidebar via a text widget. The code I'm using is right out of documentation:

      <?php wp_list_authors('show_fullname=1&optioncount=1'); ?>

    I'm getting the headline "Contributors," but nothing below it.

    Any advice?

  2. billdennis5
    Member
    Posted 7 years ago #

    I'm going to try to take another stab at getting an answer to this. Any advice?

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Text widgets cannot execute PHP code.

    Try my ExecPHP widget instead:
    http://ottodestruct.com/blog/2006/04/09/fun-with-widgets/

    Or, use a widget specifically designed for that purpose:
    http://www.mikesmullin.com/2006/06/21/list-authors-widget/

    The ExecPHP widget is kind of a catch-all. It's useful for custom code in the sidebars and using old sidebar plugins in a widget. The List Authors widget above is probably the better way to go for your particular purpose.

  4. billdennis5
    Member
    Posted 7 years ago #

    Thanks! I knew the WP community would come through for me.

Topic Closed

This topic has been closed to new replies.

About this Topic