When I use the above, and for example search the following:-
http://46.101.2.132/jobs/?s=Buying
It now loads a different page template, it needs to search the archive only, I don’t know if this makes it any different.
Usually the template loads as follows:-
http://46.101.2.132/jobs/?job_sector=&job_salary_from=&job_type=&job_location=
Managed to do this in the end with the below code:-
<?php if( have_rows('local_amenities', $development_page) ): ?>
<?php while( have_rows('local_amenities', $development_page) ): the_row(); // loop through rows (parent repeater) ?>
<?php if (get_sub_field('type_of_amenity') == 'supermarkets') { ?>
<p><?php the_sub_field('amenity_name'); ?></p>
<p><?php the_sub_field('amenity_address'); ?></p>
<p><?php the_sub_field('type_of_amenity'); ?></p>
<?php } ?>
<?php endwhile; ?>
<?php endif; ?>