WordPress.org

Ready to get started?Download WordPress

Forums

wp_list_authors not works in template (10 posts)

  1. jatop
    Member
    Posted 7 years ago #

    Hi,

    i use wordpress 2.0.5 and have follow problem:

    i will list all user of my blog. i have created a template (listuser.php):

    <?php
    /*
    Template Name: List User
    */
    ?>

    <?php get_header(); ?>

    <div id="content" class="narrowcolumn">
    <!-- <h2>Profile:</h2> -->
    <?php wp_list_authors('sort_column=name&optioncount=1&hierarchical=0'); ?>
    <?php } ?>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    i have make a new site and select as tempelate this tempelate (list user). but not work... pleas help me!

  2. Zoutesnor
    Member
    Posted 7 years ago #

    The function wp_list_authors doesn't have the parameters you've described. For a reference see http://codex.wordpress.org/Template_Tags/wp_list_authors

  3. jatop
    Member
    Posted 7 years ago #

    pleas let me know, what have i make wrong on my template! i can`t find it!

  4. MichaelH
    Member
    Posted 7 years ago #

    As Zoutesnor said, you are not using the correct parameters in the wp_list_authors tag.

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

    Additional resource:
    Author Templates

  5. jatop
    Member
    Posted 7 years ago #

    okay, but if i run the site with the template, i see nothing! pleas test my template!

    note: i have now reading, this tag is only for the writer of a entry... but i will list all member of my blog!

  6. Zoutesnor
    Member
    Posted 7 years ago #

    Use this:
    wp_list_authors('hide_empty=0&show_fullname=1&optioncount=1'); ?>

  7. jatop
    Member
    Posted 7 years ago #

    yea! work! but how can i likt it the name to the profile?

    example:
    http://localhost/wordpress/?author=2

  8. Zoutesnor
    Member
    Posted 7 years ago #

    Erh, doesn't it do this automatic? Do you have an authorpage template?

  9. jatop
    Member
    Posted 7 years ago #

    no (i think, you have not testet!), and i can't use the function, the hase no Parameters! other ideas???

  10. Zoutesnor
    Member
    Posted 7 years ago #

    Wow, I really don't understand what you're trying to say right there, but anyway, you should build an authorpage template, it works fine on my blogs.

Topic Closed

This topic has been closed to new replies.

About this Topic