Get Only Active event
-
Hi there,
I have this page where i display post and event together. I was able to get them and paginate and filter and all until i realize that records from event are also showing past events. i only want to display events which are either happening today or in future.
$args = array( 'post_type' => array('post','event'), 'posts_per_page' =>$posts_per_page, 'paged' => $paged ); $post = new WP_Query($args);
any help please
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Get Only Active event’ is closed to new replies.