You need to add Wildcards to your meta_value.
Change
$query->set('meta_query', array(
array(
'meta_key' => 'test_repeater_%_test_sub_field',
'meta_value' => $search,
'compare' => 'LIKE',
),
));
To
$query->set('meta_query', array(
array(
'meta_key' => 'test_repeater_%_test_sub_field',
'meta_value' => '%'.$search.'%',
'compare' => 'LIKE',
),
));
Related Posts:
- Filtering multiple custom fields with WP REST API 2
- WP REST API: Order posts by meta value (acf)?
- Check for the existence of custom field
- pre_get_posts filter using numeric meta_query comparison (from dates)
- Using meta_query and custom fields within pre_get_posts to return posts within a numerical range
- Comparing arrays with meta_query in pre_get_posts
- ACF repeater field with meta_query
- sort by date in Advanced Custom Field
- Get specific repeater row (via advanced custom fields) based on Meta Query with Wildcards [closed]
- Display post in order of ACF checkbox?
- Filter posts by advanced custom field
- Get posts with multiple meta values
- How can you query posts by advance custom field when the value is a serialized array? [closed]
- Query by radio button ACF
- WP get_posts meta_query using ACF repeater field
- get_posts filter meta_query using ACF Checkbox
- Multiple orderby date arguments
- Display posts every specific day
- How to use germ_terms() with meta_query for ACF Taxonomy field?
- Array sorting by custom field date
- Time sort with meta_key using UNIX timestamp failing due to date differences
- ACF Relationship Field Search Filtering [closed]
- ACF datepicker meta_query Compare Dates in m/d/Y g:i a – Not in Ymd Format
- wordpress REST-API upload image to ACF
- Meta Query “IN” doesn’t work with ACF checkbox filter
- How to add a custom field to quick edit
- Gutenberg First Block on Page Conditional?
- How to order by just the Time Field in Advanced Custom Fields
- Using Gutenberg parse_blocks Function With ACF Custom Blocks?
- How to update custom taxonomy meta using ACF update_field() function or any other wordpress function
- Thumbnails generated from PDF in the “Media” section – how to show them in theme template?
- How to count ACF Flexible Content Rows?
- Query between dates using date picker filter breaks in WordPress 4.2.1
- Get ACF value after update user using save_post
- Inconsistent behavior from number_format
- random p tag in advanced custom fields?
- How can I track and output when a field is updated? (currently using Advanced Custom Fields)
- Custom query based on meta key – Reduce three states to two in results?
- Add up values from ACF number field
- Advanced Custom Fields: Conditional Statement with Select
- Add PDF to ACF image field from file url
- ACF: How to make get_field() ignore the main wp query?
- Bulk-Update Custom Posts
- Group ACF repeater fields from differrent posts
- ACF Add fields values to newly inserted post [closed]
- Programatically re-order images in the ACF gallery add-on. Orderby Title, ID, etc
- Website goes down while importing backup (Internal server 500)
- ACF: If field contain a specific value, update value in another field programatically
- how to load random related posts with specific custom fields?
- How to get ACF value inside Gutenberg Block from another page or template? I’m using Timber too
- ACF Image field not displaying in WordPress with Visual Composer [closed]
- Frontend Form Checkbox Update ACF Field
- Custom query filter by ACF date custom field
- Query and display only by first letter of the get_field value
- How to acquire an ACF image using get_previous_post and get_next_post
- Building large multi-section pages with Advanced Custom Fields
- Using WP meta query to show custom post types by a start and finish date
- Showing a post depending on the Custom Field value
- Only Show an Advanced Custom Fields custom field on a specific template
- Widget Code / Advanced Custom Fields / Elementor
- getting image from ACF
- Need to search a custom field (ingredients, one long string per post), but want it to allow phrases/non-exact matches
- How can I apply an ACF field to a single custom post if it refers to the taxomy of that post type in the rules?
- Getting “Years Only ” from ACF Date Picker field to Hidden filed in the fields group
- Need to check if user has completed a woo commerce payment
- How to show related post having same relationship filed under single CPT?
- Trying to update repeater field (ACF) dynamically with data from Contact Forms 7
- Update field for repeater not working
- Get title color from category custom field
- WP Cron Working, but Function Not Working
- How to get a product’s Custom Fields in a different template file?
- pre_get_posts hook not targeting search results page query
- ACF – get custom taxonomy term image field
- Populating ACF Image Fields from JSON file
- ACF group field disappeared after deployment using deployer script
- WordPress query: merge meta key (number) values and sort
- ACF Dynamic select not showing data
- Field has disappeared on post page
- Modification of RSS feed is not consistent
- How to use WP Backery on Wysiwyg ACF
- Looking for a javascript callback action to re-initiate a custom slideshow in gutenberg
- Help using an array in ‘exclude’ key of another array
- Pre get posts sort by meta key returns no results if meta key does not exist
- Front page showing ACF only once, is that solvable to show the ACF per post? [closed]
- Add column and acf field content for cpt
- ACF scheduled repeater fields
- Advanced Custom Fields Show After Password [closed]
- Displays a string of linked images
- Multiple loop issue – pull one featured and then continue the loop
- Check if meta_key exists in wp_list_pages
- ACF + WPML: How to translate date fields?
- Using ACF custom field for custom post type to order categories
- PHP calls to custom fields not being made. Query seems to be blocking them
- How to indicate a parent child category relationship when bulk importing
- Get ACF time in His format
- Use value from meta key array for use in WP_Query
- Filtering custom post admin listing page elements based on acf user field
- Parsing value from Lottie JSON file
- How do I add an ACF shortcode to a non-ACF page?
- Convert acf/gutenberg markup to html