WordPress.org

Ready to get started?Download WordPress

Forums

how to: display number of posts by a contributor (4 posts)

  1. branden
    Member
    Posted 8 years ago #

    does anyone know the snippet of code i can use to display the number of posts by anyone particular author or contributor? i have a page of blog contributors and beside each of their names i'd like to display the number of posts they've contributed. possibly rank them.

    any help appreciated!

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    The wp-stats plugin here:
    http://wordpress.org/support/topic/62975?replies=8
    will do that. It also does a pile more stuff.
    What you could do is install the plugin and then on the page you want place just the code needed - which is this:
    <div class="wrap">
    <h2>Authors Stats</h2>
    <ol>
    <?php get_authorsstats(); ?>
    </ol>
    </div>

    and
    <?php get_authorsstats(); ?>
    is the actual line that does the stats.

    That a possible solution?

  3. branden
    Member
    Posted 8 years ago #

    podz,

    thanks for that. i thought maybe wordpress could do this on its own but this will do just dandy.

    thanks for the tip.

    branden

  4. branden
    Member
    Posted 8 years ago #

    podz,

    thanks for that. i thought maybe wordpress could do this on its own but this will do just dandy.

    thanks for the tip.

    branden

Topic Closed

This topic has been closed to new replies.

About this Topic