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' => 'o_event_start',
                'value' => time() + $offest,
                'type' => 'numeric',
                'compare' => '>',
            )
        )
    );
 }

$offest for 0:01 is easy 2*24*60*60-1 (two-days*24h*60m*60s – 1s ) for other you must cont from the current time.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)