Search using ACF repeater

You can filter ACF repeater field sub fields on the front end using some jQuery. See basic example below. See live working demo here: https://jsfiddle.net/joshmoto/ns73z05b/ See comments in jQuery so you know what is happening. // faq filter input on keyup event $(‘#faq’).on(‘keyup’, ‘INPUT[type=”search”]’, function(event) { // get our elements let $faq = $(event.delegateTarget); // … Read more

Need to search a custom field (ingredients, one long string per post), but want it to allow phrases/non-exact matches

You could break apart the search-string into an array and add each word to it’s own meta-query $search_query = ‘strawberries and cream’; $search_query_array = explode(‘ ‘, $search_query); // turn search query string into array of words $stop_words = [‘and’,’or’,’that’,’have’,’with’,’this’]; if ( ! empty( $search_query_array ) ) { foreach( $search_query_array as $index ) { // remove … Read more