'product',
'posts_per_page' => absint($blog_aarambha_product_per_page),
];
if ($blog_aarambha_filter_product_category) {
$blog_aarambha_product_args['tax_query'] = [
[
'taxonomy' => 'product_cat',
'terms' => [absint($blog_aarambha_filter_product_category)]
]
];
}
$blog_aarambha_query_for_products = new WP_Query($blog_aarambha_product_args);
if ($blog_aarambha_query_for_products->have_posts()):
?>
have_posts()):
$blog_aarambha_query_for_products->the_post();
$blog_aarambha_product = wc_get_product( get_the_ID() );
$blog_aarambha_regular_price = absint($blog_aarambha_product->get_regular_price());
$blog_aarambha_sale_price = absint($blog_aarambha_product->get_sale_price());
?>