title: Wordpress: How to display post count in author page by custom taxonomy
body: <p>I am trying to display the custom taxonomy in author page with a counter but seems i don't know how to do it.</p>
  <p>i have a code in <em>function.php</em></p>
  <pre><code>    add_action( 'pre_get_posts', function ( $q ) {
  
      if( !is_admin() &amp;&amp; $q-&gt;is_main_query() &amp;&amp; $q-&gt;is_author() ) {
  
          $q-&gt;set( 'posts_per_page', 100 );
          $q-&gt;set( 'post_type', 'custom_feedback' );
  
      }
  
  });
  </code></pre>
  <p>and in my author page :</p>
  <pre><code>&lt;div class=&quot;feedback-respond&quot;&gt; 
           &lt;h3 class=&quot;feedback-title&quot;&gt;User Feedback &lt;/h3&gt;
               &lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;
                 &lt;?php the_content(); ?&gt;
               &lt;?php endwhile; else: ?&gt;
                 &lt;p&gt;&lt;?php _e('No posts by this author.'); ?&gt;&lt;/p&gt;
               &lt;?php endif; ?&gt; 
              &lt;/div&gt;
  </code></pre>
  <p>The code works for all the author profile but i don't know how to get the the custom taxonomy to display like this:</p>
  <p><strong>User Feedback</strong></p>
  <p><em>6 POSITIVE feedback 4 NEGATIVE feedback</em></p>
  <p>all feedback goes here</p>
  <p>all feedback goes here</p>
  <p>all feedback goes here</p>
  <p>By the way it is a custom post type (custom_feedback)and custom taxonomy(feedback_taxonomy) with two category Positive and Negative.</p>
  <p>Please help masters?</p>