Support

Account

Home Forums Front-end Issues Custom field: extract day of month Reply To: Custom field: extract day of month

  • I solved the problem myself using a variable and REGEX 😉

     'meta_query' => array(
                        array(
                          'key'      => 'birthday',
                          'compare'  => 'REGEXP',
                          'value'    => $year.'[0-9]{2}[0-9]{2}', 
                        ),    
                      )
    ));