Eid Sale

[insert_php]
function get_me_list_of($atts, $content = null)
{
$args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 10, ‘product_cat’ => $atts[0], ‘orderby’ => ‘rand’ );
$loop = new WP_Query( $args );
echo ‘

Style ‘.$atts[0].’

‘;
echo ”

      “;

 

      while ( $loop->have_posts() ) : $loop->the_post();

 

    global $product;

echo ‘

 
‘;
endwhile;
echo ”
“;
wp_reset_query();
}
[/insert_php]