Support

Account

Home Forums General Issues Post Object Query By Author Reply To: Post Object Query By Author

  • if ( !current_user_can('manage_options')) {
             // modify the order
             $current_user = wp_get_current_user();
             $user_id = $current_user->ID;
             $args['author']=$user_id;
             $args['authors']=$user_id;
             $args['post_type']='stand';
             return $args;
    } 
    else { $args['post_type']='stand'; return $args; }