From: Anthony Talarico Date: Thu, 10 Nov 2016 16:45:51 +0000 (-0500) Subject: cleaning up the partners cpt metabox code, reorganizing the html markup and the php... X-Git-Tag: v1.0.0^2~80 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=f3f165bd92817983810a94559cabd1915c3014c4;p=WP-Themes%2Funiversitycenter.git cleaning up the partners cpt metabox code, reorganizing the html markup and the php code --- diff --git a/lib/partners-post-type.php b/lib/partners-post-type.php index c70ab06..1ddae86 100644 --- a/lib/partners-post-type.php +++ b/lib/partners-post-type.php @@ -66,57 +66,39 @@ function partner_title() { global $post; $nonce = wp_create_nonce( 'title-meta-noncename' ); echo ''; - // Get the features for the post. + $name = get_post_meta( $post->ID, 'partner_name', true ); - - // Output field. if ( !empty( $name) ) { $name_value = "value=".'"'.$name .'"'; - } - ?> - /> + } - ID, 'partner_title', true ); - - // Output field. if ( !empty( $title) ) { $title_value = "value=".'"'.$title .'"'; } - ?> - /> - - ID, 'partner_email', true ); - // Output field. + $email = get_post_meta( $post->ID, 'partner_email', true ); if ( !empty( $email) ) { $email_value = "value=".'"'.$email .'"'; } - ?> - /> - ID, 'partner_phone', true ); - - // Output field. + $phone = get_post_meta( $post->ID, 'partner_phone', true ); if ( !empty( $phone) ) { $phone_value = "value=".'"'.$phone .'"'; } - ?> - /> - ID, 'partner_url', true ); - - // Output field. + $url = get_post_meta( $post->ID, 'partner_url', true ); if ( !empty( $url) ) { $url_value = "value=".'"'.$url .'"'; - } - ?> + } ?> + + /> + /> + /> + /> /> - -