Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5527

vtxyzzy on "Can't get a WP query working"

$
0
0

I think this is what you want:

if ($_POST['plaats'] != '') {
   $meta_query = array(
      'relation' => 'OR',
      array(
         'key' => 'city',
         'value' => $_POST['plaats'],
         'compare' => 'LIKE'
      ),
      array(
         'key'     => 'city2',
         'value'   => $_POST['plaats'],
         'compare' => 'LIKE'
      )
   );
}

Viewing all articles
Browse latest Browse all 5527

Trending Articles