"> <table class="table"> <?php foreach ($fields as $field) { ?> <tr> <th><?php echo $field; ?> :</th> <td><input name="<?php echo strtolower(str_replace(' ', '_', $field)); ?> " value="<?php echo esc_html($entry->getRaw(strtolower(str_replace(' ', '_', $field)))); ?> "></td> </tr> <?php } ?> <?php if ($_GET['form'] == 'festival') { ?> <?php $entry_types = $entry->getEntryTypes(); ?> <tr> <th>Entry Type:</th> <td>