How can I use a repeater field with meta_query I have a repeater field with some text values only and have a form that sends variables to a page where I get the value and storage a value which is the VALUE in the meta_query, I want to get all the CPT that hast certain string in a repeater field for example:
if(isset($_GET['tecnology'])){
$tech = $_GET['tecnology'];
echo $tech;
}
if(isset($_GET['category'])){
$cat = $_GET['category'];
echo $cat;
}
if(isset($_GET['start'])){
$star_point = $_GET['start'];
echo $star_point;
}
$args = array(
'post_type' => 'project',
'posts_per_page' => -1,
'orderby' => 'post_date',
'meta_query' => array(
array(
'key' => 'tecnologies',
'value' => $tech,
'compare' => 'LIKE'
),
array(
'key' => 'category_project',
'value' => $cat,
'compare' => 'LIKE'
),
array(
'key' => 'route', //this is the repeater field
'value' => $star_point, // this is the string I want to know if it´s in the repeater field
'compare' => 'LIKE'
)
)
);
$loop_servicios = new WP_Query( $args );
?>