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

  1. billdennis5
    Posted 9 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
    Posted 9 years ago #

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

  3. Text widgets cannot execute PHP code.

    Try my ExecPHP widget instead:

    Or, use a widget specifically designed for that purpose:

    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
    Posted 9 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