0
字段創建HTML表我有下面的代碼顯示自定義字段作爲HTML表單:從foreach循環
<?php foreach ($job_fields as $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>
是否有辦法自定義此代碼,以顯示他在一個HTML表中的字段呢?