Example #1
0
function allProductShortcode()
{
    $args = array('post_type' => 'product', 'post_status' => 'publish', 'posts_per_page' => -1);
    $my_query = null;
    $my_query = new WP_Query($args);
    $tpl = new Tpl();
    return $tpl->questions($my_query);
}