<form> <p class="<?php if (get_option('jr_submit_cat_required')!=='yes') : echo 'optional'; endif; ?>"><label for="job_cat"><?php _e('Job Category', 'appthemes'); ?> <?php if (get_option('jr_submit_cat_required')=='yes') : ?><span title="required">*</span><?php endif; ?></label> <?php $sel = 0; if (isset($posted['job_term_cat']) && $posted['job_term_cat']>0) $sel = $posted['job_term_cat']; global $featured_job_cat_id; $args = array( 'orderby' => 'name', 'exclude' => $featured_job_cat_id, 'order' => 'ASC', 'name' => 'job_cat', 'hierarchical' => 1, 'echo' => 0, 'class' => 'job_cat', 'selected' => $sel, 'taxonomy' => 'job_cat', 'hide_empty' => false ); $dropdown = wp_dropdown_categories( $args ); echo $dropdown; ?></p> <input type="submit" name="submit" value="view" /> </form>
There are currently 1 users browsing this thread. (0 members and 1 guests)