i'm building an e-commerce store with the easy digital downloads plugin. I dont want to have one page with all of my products, what i want is to have for each product category a single page. what i have so far is a template page - edd-store-front.php, with the folowing wp_query code:
$per_page = intval( get_theme_mod( 'bwpy_store_front_count', 9 ) );
$offset = $current_page > 0 ? $per_page * ( $current_page-1 ) : 0;
$product_args = array(
'post_type' => 'download',
'posts_per_page' => $per_page,
'offset' => $offset,
'tax_query' => array(
array(
'taxonomy' => 'download_category',
'field' => 'id',
'terms' => '29'
),
),
);
$products = new WP_Query( $product_args );
in this case, the edd-store-front.php displays all the products with the category id '29'. as i wrote in my code. now, the easy-digital downloads has some shortcodes, which i can decide with them what products (downloads) i want to display. for example: "[downloads category="29"]" will display all the products with the category id '29'. In the wordpress page that refers to the the edd-store-front.php template, the shortcodes doesnt affect anything, only the template file (for some reason?). so, my question is how can i achieve with the wp_query a single template file for all the pages of the store, that will display a custom category, which will be decided at the wordpress page in the dashboard, using the shortcodes?