• Hi,

    I am hoping that I can get a little help. I am wanting to make an author widget, more than likely to be hand-coded, where I can display the following:

    * Number of blog posts the author has published on the site
    * Number of comments the author has made on the site
    * Number of followers the author has on the site’s Buddypress network
    * Number of forum posts the author has submitted to the site’s bbPress forum

    WP, BP and bbP are all in the same installation. Comments are managed by WP, not by any external service (IntenseDebate, Disqus, etc)

    Is it possible to create a widget that would work outside of the loop, probably in the sidebar? Where would I find the post counts?

Viewing 1 replies (of 1 total)
  • Thread Starter Nathan Hawkes

    (@natehawkes)

    Just to update, I have found the functions for the following:

    * Number of blog posts the author has published on the site – echo count_user_posts(get_the_author_meta(‘ID’));
    * Number of comments the author has made on the site – based on http://wpsnipp.com/index.php/comment/display-user-comment-count-next-to-username/, modified to change the ID number based on get_the_author_meta(‘ID’)
    * Number of followers the author has on the site’s Buddypress network – echo friends_get_total_friend_count(get_the_author_meta(‘ID’));

    The only thing I have left to find is the forum posts. Does anyone have any ideas?

Viewing 1 replies (of 1 total)
  • The topic ‘Author box outside of the loop’ is closed to new replies.