You need $form_enquiries->the_post()
to “push” the loop onto the next post – otherwise yes, you get an infinite loop!
while ( $form_enquiries->have_posts() ) {
$form_enquiries->the_post();
// rest of your loop
}
You need $form_enquiries->the_post()
to “push” the loop onto the next post – otherwise yes, you get an infinite loop!
while ( $form_enquiries->have_posts() ) {
$form_enquiries->the_post();
// rest of your loop
}