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

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -