Skip to main content

Is my code is correct?

can any one tell me about the following code.This code is not giving error but not working.

if(!is_numeric($keyword)){
    $args['meta_key']='taken-by';
    $args['meta_value']=$keyword;
    $args['post_type']='estate_property';
    $args['key']='post_title';
    $args['value']=$keyword;
    $args['compare']='LIKE';
}else{
    $args['post_type']='estate_property';
    $args['key']='ID';
    $args['value']=$keyword;
}

$prop_selection= new Wp_Query($args);