Display post count in sidebar for author ID
How do I display an author’s forum post count in a sidebar? I am trying to make a widget that shows the number of posts an author has made (as well as the number of blog posts they have made). You can see this at http://uksones.uni.me/2014/01/hello-world/. It’s the unformated widget at the top of the page.
In my sidebar, I am using bbp_get_user_post_count() and feeding the author ID using get_the_author_meta(‘ID’), but the post count is coming back as ‘0’, even though I have made a topic in the forum and posted a reply to that topic. Is there a way to get the post count into my widget (so in my example, I believe that would appear as ‘2’ – one topic + one reply = two posts)?
I am currently using WP 3.8 and bbP 2.5.2.
Thanks in advance.
You must be logged in to reply to this topic.