pre_get_posts post_meta event
If you have store date different then timestamp it will be VERY hard to do this. To get this if is timestamp stored, you need add “meta_query” like this: add_action(‘pre_get_posts’, ‘my_pre_get_posts’); function my_pre_get_posts($query) { $offest = 0;// you must count this to avoid today and tomorrow $query->set( ‘meta_query’, array( ‘relation’ => ‘AND’, array( ‘key’ => … Read more