For anyone that runs across this, @elliot’s custom filter to allow the LIKE function to work no longer works as of WP 4.8.3
If you replace it with the following function you’ll be all set. Hopefully this saves someone else the few hours I lost on it 🙂
function allow_wildcards( $where ) {
global $wpdb;
$where = str_replace(
"meta_key = '{$repeater_field_name}_%_{$sub_field_name}",
"meta_key LIKE '{$repeater_field_name}_%_{$sub_field_name}",
$wpdb->remove_placeholder_escape($where)
);
return $where;
}
add_filter('posts_where', 'allow_wildcards');
I can also confirm that this issue was not present in 5.1.8. Rolling back to that version works as a temporary fix.
I’m having this issue with my Repeaters as well in ACF5. I think Elliot’s question of how much HTML and JS is on the page could be correct.
I’ve got a page with only 57 repeater rows. Each repeater has some conditional logic resulting 9400 lines of HTML. 1600 lines of that is TinyMCE and the Media Library scripts.
Has anyone else made any progress on finding a solution for this?