WordPress loop causing timeout errors (maximum execution time of 30 seconds exceeded) June 4, 2022 by Tarik Billa Yep the issue was what Milo mentioned, that I didn’t have the_post inside the loop so the loop was running infinitely.