<?php
if (!post_password_required())
{
the_content();
$loop = new WP_Query(array('post_type' => 'applications', 'posts_per_page' => 100));
while ($loop->have_posts()) :
$loop->the_post();
the_field('last-name');
the_field("email");
the_field("email");
the_field('organisation');
endwhile;
}
else;
{
echo custom_password_form();
}
?>
Here's your PHP equivalent page as you can see the else has a semicolon causing the issue.