Custom Fields value array & search
-
Range search can be done as follows:
$true_args = array( 'meta_query' => array( array( 'key' => 'price', 'value' => array( 1000, 3000 ), 'type' => 'numeric', 'compare' => 'BETWEEN' ) ) ); $true_query = new WP_Query( $true_args );But how can you do a search if the field value looks like this:
a:3:{i:0;a:1:{s:5:"price";s:3:"150";}i:1;a:1:{s:5:"price";s:3:"856";}i:2;a:1:{s:5:"price";s:5:"78988";}}It is written several prices. Sampling should be done by anyone, or even be the first.
Excuse me for my English)
The topic ‘Custom Fields value array & search’ is closed to new replies.