global $post;
$nonce = wp_create_nonce( 'title-meta-noncename' );
echo '<input type="hidden" name="title-meta-noncename" id="title-meta-noncename" value="' . $nonce . '" />';
- // Get the features for the post.
+
$name = get_post_meta( $post->ID, 'partner_name', true );
-
- // Output field.
if ( !empty( $name) ) {
$name_value = "value=".'"'.$name .'"';
- }
- ?>
- <label>Name: </label><input style="display: block;margin-bottom: 15px;" type="text" name="partner_name" <?php echo $name_value; ?> />
+ }
- <?php
$title = get_post_meta( $post->ID, 'partner_title', true );
-
- // Output field.
if ( !empty( $title) ) {
$title_value = "value=".'"'.$title .'"';
}
- ?>
- <label>Title: </label><input style="display: block;margin-bottom: 15px;" type="text" name="partner_title" <?php echo $title_value; ?> />
-
- <?php
- $email = get_post_meta( $post->ID, 'partner_email', true );
- // Output field.
+ $email = get_post_meta( $post->ID, 'partner_email', true );
if ( !empty( $email) ) {
$email_value = "value=".'"'.$email .'"';
}
- ?>
- <label>E-Mail: </label><input style="display: block;margin-bottom: 15px;" type="text" name="partner_email" <?php echo $email_value; ?> />
- <?php
- $phone = get_post_meta( $post->ID, 'partner_phone', true );
-
- // Output field.
+ $phone = get_post_meta( $post->ID, 'partner_phone', true );
if ( !empty( $phone) ) {
$phone_value = "value=".'"'.$phone .'"';
}
- ?>
- <label>Phone: </label><input style="display: block;margin-bottom: 15px;" type="text" name="partner_phone" <?php echo $phone_value; ?> />
- <?php
- $url = get_post_meta( $post->ID, 'partner_url', true );
-
- // Output field.
+ $url = get_post_meta( $post->ID, 'partner_url', true );
if ( !empty( $url) ) {
$url_value = "value=".'"'.$url .'"';
- }
- ?>
+ } ?>
+
+ <label>Name: </label><input style="display: block;margin-bottom: 15px;" type="text" name="partner_name" <?php echo $name_value; ?> />
+ <label>Title: </label><input style="display: block;margin-bottom: 15px;" type="text" name="partner_title" <?php echo $title_value; ?> />
+ <label>E-Mail: </label><input style="display: block;margin-bottom: 15px;" type="text" name="partner_email" <?php echo $email_value; ?> />
+ <label>Phone: </label><input style="display: block;margin-bottom: 15px;" type="text" name="partner_phone" <?php echo $phone_value; ?> />
<label>URL: </label><input style="display: block;margin-bottom: 15px;" type="text" name="partner_url" <?php echo $url_value; ?> />
-
- <?php
+
+<?php
}
/**