• Hey there,

    I’m struggling with a problem I couldn’t solve so far by myself, so I hope to get a solution here.

    We have a Q&A-Community based on WP. Each new user can post questions that are based on custom post types. New users automatically are subscribers. The answers are based on the regular WP comment system. So far, so good.

    Now I try to improve the user administration in the backend. My problem: WordPress seems to count only regular posts – I don’t have a chance to control the questions users are asking. I already managed to include a sortable column with the user’s registration date, but with the custom post types I’ve had no luck so far.

    Anybody of you guys or girls has an idea how to solve this problem?

    Thank you very much in advance!

    Kind regards, Timo

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    So you wish to alter the post count shown for each user on the User Admin Table to include the CPT count as well, correct?

    I see no easy way to do this. You are better off adding another custom column to show CPT counts separately, much like how you added a column for registration date.

    Thread Starter thermann78

    (@thermann78)

    Right. I hoped to find any hook to change that, but in fact I can’t find out where the outputs for the users.php are generated. So maybe I really have to add a custom column…

    Moderator bcworkz

    (@bcworkz)

    I think so. FYI, the output comes from here. I traced back to where $numposts comes from and didn’t see any usable hooks. Feel free to take a second look, I may have missed something.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Admin users: Count of Custom Post Types’ is closed to new replies.