Prepared statements used incorrectly in ACF?
I’m pretty sure that you ARE incorrect. Let’s taka a closer look at this code you mentioned in your question. In first line it sets $where variable: $where=”WHERE ID IN (” . substr(str_repeat(‘%d,’, count($my_options[‘acf_posts’])), 0, -1) . ‘)’; So what this line really does is: get the number of some options (let’s call it ‘N’) … Read more