title: WordPress Looping through products
body: <p>Have a wordpress site with woocommerce.</p>
  
  <p>I'm trying to add descriptions for the categories.</p>
  
  <p>It is only adding a description for the first category and then copies it to the other categories.</p>
  
  <p>In my child-themes functions.php I added:</p>
  
  <pre><code>function add_descript() {
  if ( ! defined( 'ABSPATH' ) ) {
          exit; // Exit if accessed directly
      }
  
      global $post;
  
          if ( ! $post-&gt;post_excerpt ) {
              return;
          }
  
  ?&gt;
  &lt;div itemprop="description"&gt;
      &lt;?php echo apply_filters( 'woocommerce_short_description', $post-&gt;post_excerpt ) ?&gt;
  &lt;/div&gt; &lt;?php 
  }
  
  
  
  add_action( 'woocommerce_before_subcategory_title', 'add_descript' );
  </code></pre>
  
  <p>Is there a way to loop through all of the categories and grab and excerpt?</p>
  
  <p>Thanks,
  Matt</p>