-add_action( 'add_meta_boxes', 'presale_add_custom_metabox');
-
-function presale_meta_callback( $post ) {
- wp_nonce_field ( basename( __FILE__ ), 'presale_nonce');
- $presale_stored_data = get_post_meta( $post->ID);
- ?>
- <div>
- <div class="meta-row">
- <div class="meta-th"><label for="presale-seats" class="show-title">Show ID</label></div>
- <div class="meta-td">
- <input type="text" name="presale-seats" id="presale-seats"
- value="<?php if (!empty ( $presale_stored_data['presal-seats'])) echo esc_attr( $presale_stored_data['presal-seats'][0] ) ?>">
- </input>
- </div>
- </div>
- </div>
- <?php
+add_action ( 'add_meta_boxes', 'presale_add_custom_metabox' );
+function presale_meta_callback($post) {
+ wp_nonce_field ( basename ( __FILE__ ), 'presale_nonce' );
+ $presale_stored_data = get_post_meta ( $post->ID );
+ ?>
+<div>
+ <div class="meta-row">
+ <div class="meta-th">
+ <label for="presale-seats" class="show-title">Seats</label>
+ </div>
+ <div class="meta-td">
+ <input type="text" name="presale-seats" id="presale-seats"
+ value="<?php if (!empty ( $presale_stored_data['presal-seats'])) echo esc_attr( $presale_stored_data['presal-seats'][0] ) ?>">
+ </input>
+ </div>
+ </div>
+</div>
+<?php