Using a repeatable group field in the meta_query array
-
I would like to use a field within a repeatable group to make a custom query.
My query would be similar to this:
'meta_query' => array( 'relation' => 'OR', array( 'key' => 'day_select', 'value' => 'off', 'compare' => '!=' ),
How would I call for the repeatable group field within this query? Here is how I call for my info normally:
foreach ( (array) $groups as $key => $entry ) { $show_time = $day_select = ''; if ( isset( $entry['show_time'] ) ) { $show_time = $entry['show_time']; } if ( isset( $entry['day_select'] ) ) { $day_select = $entry['day_select']; } $compel_output .= '<tr><th class="days">test' . $show_time .'</th><th class="time">' . $day_select .'</th><th class="trainers"></th><th class="notes"></th></tr>'; }
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Using a repeatable group field in the meta_query array’ is closed to new replies.