Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add support for ACF (Advanced Custom Fields) Repeaters in SearchWP (search all Repeater fields)
function my_searchwp_acf_repeater_keys( $keys ) {
$keys[] = 'staff_%'; // will match all ACF Repeater fields in the Staff repeater
return $keys;
add_filter( 'searchwp_custom_field_keys', 'my_searchwp_acf_repeater_keys' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.