WordPress loop causing timeout errors (maximum execution time of 30 seconds exceeded)

Yep the issue was what Milo mentioned, that I didn’t have the_post inside the loop so the loop was running infinitely.