Sorry for the delay, I’ve had a big DB error for several days…
I’ve tried to escape but it doesn’t work. Maybe with the prepare method, I’ll try to figure it out.
Just before setting this topic on solve, I have one last question : what if this query takes too long and generate an error ? My website has been down for 4 days, and the host said it was due to a “never ending SQL request”…
Is there a way to secure this query ?
What I’ve done for now is to set a max for the $max_rows var (if it’s above 35 the loop won’t start).
If you have any idea they are more than welcome 🙂
Thanks a lot again for all your help on this
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
2022 was a big year for Advanced Custom Fields, with more capabilities, a new generation of ACF Blocks, a refreshed UI, and a new home. Our year in review post looks at advancements we’ve made and offers a glimpse of the future.— Advanced Custom Fields (@wp_acf) January 6, 2023
© 2023 Advanced Custom Fields.