How to list users and their post amount?

WordPress has a wp_list_authors function with the option to list post count. <?php $args = array( ‘orderby’ => ‘post_count’, ‘optioncount’ => true); wp_list_authors( $args ); ?> EDIT: While it’s possible to do it the way you’re doing it and use count_user_posts(), this will trigger a query to retrieve users, then additional queries to get each … Read more

14,000 WordPress Users. How did they get there?

They were probably automatically created by spam bots. You can disable user registration by going to the Settings > General page and unchecking the Anyone Can Register box. You’ll still be able to manually create users, but users won’t be able to register themselves automatically. If you want to allow users to register, but still … Read more

Register new user in the frontend

Yes, yes you can. The relevant functions to do this are: wp_create_user Creates a user given a user/pass/email wp_insert_user Creates or updates a user given user/pass/email add_user_meta Adds User Meta ( same as Post Meta/Custom fields but for users rather than posts ) You’ll find examples on how to use those functions, and links to … Read more