title: WooCommerce exclude certain product attributes from shop page
body: <p>I've been wracking my brain on this one. Currently, to display all custom product attributes on the shop page (not to be confused with the product page) I'm using:</p>
  
  <pre><code>function show_attr() {
     global $product;
     echo '&lt;div class="attributes"&gt;';
     $product-&gt;list_attributes();
     echo'&lt;/div&gt;'
  }
  </code></pre>
  
  <p>This works just fine, and displays all product attributes, but I only want to include certain ones. I have also tried following <a href="https://wordpress.org/support/topic/product-list_attributes-exclude-attribute-term/" rel="nofollow">this person's</a> advice: </p>
  
  <pre><code>&lt;?php foreach ( $attributes as $attribute ) :
      if ( empty( $attribute['is_visible'] ) || 'CSC Credit' == $attribute['name'] || ( $attribute['is_taxonomy'] &amp;&amp; ! taxonomy_exists( $attribute['name'] ) ) ) {
          continue;
      } else {
          $has_row = true;
      }
  ?&gt;
  </code></pre>
  
  <p>So that unfortunately did not work either. I was able to remove the desired attribute, but it removes it on EVERY page, and I want to exclude it <strong><em>only</em></strong> from the shop page.</p>
  
  <p>I see that the $attribute variable has this <code>[is_visible]</code> condition. Does anyone have any ideas of how I might remove that for specific attributes on the shop page? I'm at a total loss. Thanks for any and all help.</p>