The Top 2 Reasons To Consider a Newly Built Home Listed on Listed by MLS# Beds Baths Sq.Ft. <?php $category_links = array(); foreach ($categories as $category) { $category_links[] = 'term_id)) . '" style="color: #666; text-decoration: none;">' . esc_html($category->name) . ''; } echo implode(', ', $category_links); ?> Share: <a href="https://facebook.com/sharer/sharer.php?u=" target="_blank" rel="noopener noreferrer" style="margin-left: 10px; color: #666;"> <a href="https://twitter.com/intent/tweet?url=&text=" target="_blank" rel="noopener noreferrer" style="margin-left: 10px; color: #666;"> <a href="https://www.linkedin.com/shareArticle?mini=true&url=&title=" target="_blank" rel="noopener noreferrer" style="margin-left: 10px; color: #666;"> <a href="mailto:?subject=&body=" style="margin-left: 10px; color: #666;"> ID, 'property_price', true); $beds = get_post_meta($post->ID, 'property_beds', true); $baths = get_post_meta($post->ID, 'property_baths', true); $sqft = get_post_meta($post->ID, 'property_sqft', true); $mls = get_post_meta($post->ID, 'property_mls', true); ?> Price: <input type="number" id="property_price" name="property_price" value="" style="width: 100%;"> Bedrooms: <input type="number" id="property_beds" name="property_beds" value="" style="width: 100%;"> Bathrooms: <input type="number" id="property_baths" name="property_baths" step="0.5" value="" style="width: 100%;"> Square Footage: <input type="number" id="property_sqft" name="property_sqft" value="" style="width: 100%;"> MLS Number: <input type="text" id="property_mls" name="property_mls" value="" style="width: 100%;"> <?php } // Save property meta data function bhhs_save_property_meta($post_id) { // Check nonce if (!isset($_POST['bhhs_property_details_nonce']) || !wp_verify_nonce($_POST['bhhs_property_details_nonce'], 'bhhs_property_details')) { return; } // Check autosave if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) { return; } // Check permissions if (!current_user_can('edit_post', $post_id)) { return; } // Save meta data $meta_fields = array( 'property_price', 'property_beds', 'property_baths', 'property_sqft', 'property_mls' ); foreach ($meta_fields as $field) { if (isset($_POST[$field])) { update_post_meta($post_id, $field, sanitize_text_field($_POST[$field])); } } } add_action('save_post', 'bhhs_save_property_meta');