How to skip or remove Passed events from custom wordpress woocommerce Query in Wooevents Plugin.
Hi,I Wrote query that fetch events from one of my Woocommerce category. But problem is my query get passed events too with upcoming events. i just don't want to show passed events. So user will not get confused and able to booked passed events. Here is my query.
$my_query = new WP_Query(array( 'post_type' => "product", 'product_cat' => 'events' ));
if ( $my_query->have_posts() ):
while ( $my_query->have_posts() ):
$my_query->the_post();
global $product;
//Book Now Code Here
endwhile; endif;
wp_reset_query();
Nov 1, 2017
Wordpress Bugs