true, '_builtin' => false ); $output = 'object'; $operator = 'and'; $num_posts = wp_count_posts( $ac_pt ); $num = number_format_i18n( $num_posts->publish ); $text = _n( $ac_pt_s, $ac_pt_p, intval( $num_posts->publish ) ); if( current_user_can( 'edit_posts' ) ) { $num = "$num"; $text = "$text"; } echo '' . $num . ''; echo '' . $text . ''; echo ''; if( $num_posts->pending > 0 ) { $num = number_format_i18n( $num_posts->pending ); $text = _n( $ac_pt_sp, $ac_pt_pp, intval( $num_posts->pending ) ); if( current_user_can( 'edit_posts' ) ) { $num = "$num"; $text = "$text"; } echo '' . $num . ''; echo '' . $text . ''; echo ''; }