this argument is not working because it will not pull the custom post type
$args = array( 'orderby' => 'post_count', 'order' => 'DESC', 'role' => 'contributor' );
WP_User_Query does not support ‘post_type’ arg.. anybody has an idea?
@louiejie, thanks for the code but still not working..
anyone like to help me?
thanks for that but I am aware on this.. I am having issue on get_users post_count orderby.. current code will display something like this
I want to display it something
I have a code something like this
$args = array( 'orderby' => 'post_count', 'order' => 'DESC', 'role' => 'contributor' ); $want_agents = get_users($args); foreach ($want_agents as $want_user) : global $wpdb; $want_post_author = $want_user->ID; $want_count = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = $want_post_author AND post_type IN ('want_item') and post_status = 'publish'" ); ?> <li class="clear"> <?php echo $want_user->display_name; ?> </li> <?php endforeach;
but post_count is not working, anyone can help?
this is a good news! thanks
We submitted a WP theme and it’s soft rejected, we re-submit it and it’s still soft rejected, we re-submit again and now it’s rejected… can anyone explain why a soft rejected theme now rejected.. sorry but I am confuse..