Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display post count in sidebar for author ID


  • Nathan Hawkes
    Participant

    @natehawkes

    How do I display an author’s 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). I currently only have a local copy of the site, but will be putting it online very soon for demonstration.

    In my sidebar, I am using bbp_get_user_oost_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? It will appear in my sidebar and show the number of posts for the author, not the logged in user.

    Thanks in advance.

    Nate

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display post count in sidebar for author ID’ is closed to new replies.
Skip to toolbar