• Is there a function for this if I have the author’s id and the category id or name? I couldn’t find one.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You could use get_posts or WP_Query and then simply count the number of posts returned.

    Thread Starter displayname

    (@displayname)

    would this slow down the server? (because there would be multiple queries on my page)

    That depends on a lot of other factors – such as how many authors you’d be running this query on and how many other unrelated queries would also be running on the page due to your plugins or theme.

    So how many user queries are we talking about?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to get the number of posts by a user in a specific category’ is closed to new replies.