// this captures the form submitted value and sets it equal to a variable. Does some general data scrubbing too. Add below line 33 $condition = cp_filter($_POST['condition']); // this line saves the new custom field to the ad you just created. Add below line 157 add_post_meta($post_id, 'condition', $condition, true);
<div id="condition"><?php _e('Condition:');?><?php echo get_post_meta($post->ID, "condition", true); ?></div>
<label for="location"><?php _e('Google Map','cp'); ?> <span>*</span></label> <input type="text" id="gmap" name="gmap" maxlength="100000" value="<?php echo $gmap; ?>" />
add_post_meta($post_id, 'gmap', $gmap, true);
<div id="gmap"><?php echo get_post_meta($post->ID, "gmap", true); ?></div>
There are currently 1 users browsing this thread. (0 members and 1 guests)