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 ''; } $faq_args = array( 'name' => 'group' ); $taxonomies = get_taxonomies( $faq_args, $output, $operator ); foreach( $taxonomies as $taxonomy ) { $num_terms = wp_count_terms( $taxonomy->name ); $num = number_format_i18n( $num_terms ); $text = _n( $taxonomy->labels->singular_name, $taxonomy->labels->name, intval( $num_terms ) ); if( current_user_can( 'manage_categories' ) ) { $num = "$num"; $text = "$text"; } echo '' . $num . ''; echo '' . $text . ''; }