So using the plugin “insert php” i got the form to work but now im only seeing one category; this is really odd. Also on the tutorial website the line below had a : instead of a ; when i changed that, thats when i started getting only one category.
<?php foreach ( get_job_listing_categories() as $cat ) : ?>
<form method="GET" action="https://www.jobhuntja.com/jobs-in-jamaica-online/">
<p>
<label for="keywords">Keywords</label>
<input type="text" id="search_keywords" name="search_keywords" />
</p>
<p>
<label for="keywords">Location</label>
<input type="text" id="search_location" name="search_location" />
</p>
<p>
<label for="search_category">Category</label>
<select id="search_category" name="search_category">
[insert_php] foreach ( get_job_listing_categories() as $cat ) ; [/insert_php]
<option value="[insert_php] echo esc_attr( $cat->term_id ); [/insert_php]">
[insert_php] echo esc_html( $cat->name ); [/insert_php]
[insert_php] endforeach; [/insert_php]
</option>
</select>
</p>
<p>
<input type="submit" value="Search" />
</p>
</form>