• Hello,

    Im trying to get this to work with woocommerce and my theme. The theme has two ways to display woocommerce product loop, as a regular list or as multi-masonary. If im using the masonary display, I want the featured image 2 set by Dynamic Featured Image to be used, if not it should show the regular. This is how the theme show the product loop:

    
                                           <ul class="products list-<?php echo $asset_type; ?> row <?php echo $list_class; ?>" data-columns="<?php echo esc_attr($columns); ?>">
    
                        	<?php if ( $multi_masonry == "yes" ) { ?>
    
                        		<div class="clearfix product col-sm-3 grid-sizer"></div>
                        		
                        		<?php while ( $products->have_posts() ) : $products->the_post();  ?>
    
                                	<?php woocommerce_get_template_part( 'content', 'product' ); ?>
    
                            <?php endwhile; // end of the loop. ?>
                            
                            
                            <?php } else { ?>
                            
                                                	
                            <?php while ( $products->have_posts() ) : $products->the_post(); ?>
    
                                	<?php woocommerce_get_template_part( 'content', 'product' ); ?>
    
                            <?php endwhile; // end of the loop. ?>
    
                        	<?php } ?>
    
                        </ul>
    

    How do I edit the code above to do as I want? Any suggestion would be higly appriciated!

    Kind regards,
    Richard

  • The topic ‘Possible to use with woocommerce?’ is closed to new replies.