Count user posts

  • Anonymous

    #6814

    Hey,

    I want to display the total posts a user has posted.

    How can I do this?

    Many thanks in advance !

    Thibault

    Mod

    Kenneth John Odle

    #35725

    You will need to install the PHP widget, and use the following code:

    <?php the_author_posts(); ?>

    See this:

    http://codex.wordpress.org/Function_Reference/the_author_posts

    Anonymous

    #35726

    Where can I download that widget?

    Mod

    Kenneth John Odle

    #35727

    Here:

    http://wordpress.org/extend/plugins/wp-php-widget/

    But there are many in the plugin repository; it’s worth taking a look.

    Anonymous

    #35728

    Many thanks but I actually want that when someone opens an author profile, they can see how much posts the author has .

    Is this possible? I’ll certainly use the php widget 😉

    Mod

    Kenneth John Odle

    #35729

    Yes, it is. Use either of the action hook widget areas that are available in “author.php”.

    Anonymous

    #35730

    Awesome, everything works now !!

    Many many thanks !

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!