php - Create html table from fields in foreach loop -


i have following code displays custom fields html form:

<?php foreach ( $job_fields $key => $field ) : ?>         <fieldset class="fieldset-<?php esc_attr_e( $key ); ?>">             <label for="<?php esc_attr_e( $key ); ?>"><?php echo $field['label'] . apply_filters( 'submit_job_form_required_label', $field['required'] ? '' : ' <small>' . __( '(optional)', 'wp-job-manager' ) . '</small>', $field ); ?></label>             <div class="field <?php echo $field['required'] ? 'required-field' : ''; ?>">                 <?php get_job_manager_template( 'form-fields/' . $field['type'] . '-field.php', array( 'key' => $key, 'field' => $field ) ); ?>             </div>         </fieldset> 

is there way customize code display fields in html table instead?

just replace etc. etc. create blank html table first, place in proper places.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -