if ($post_title == "" || $post_cat == "" || $name == "" || $email == "" || $description == "") { $err .= __('Please fill in all mandatory * fields','cp') . " "; }
$price == "" || $location == "" ||
<label for="price"><?php _e('Price','cp'); ?> <span>*</span> <?php _e('(do not enter currency symbol)','cp'); ?></label> <input type="text" id="price" class="adfields" name="price" size="60" maxlength="100" value="<?php echo stripslashes($_POST['price']); ?>" /> <label for="location"><?php _e('Location','cp'); ?> <span>*</span></label> <input type="text" id="location" class="adfields" name="location" size="60" maxlength="100" value="<?php echo stripslashes($_POST['location']); ?>" />
if ($model == "" || $post_title == "" || $post_cat == "" || $name == "" || $email == "" || $description == "") { $err .= __('Please fill in all mandatory * fields','cp') . " "; }
$cp_adURL = cp_filter($_POST['cp_adURL']); $featured_ad = cp_filter($_POST['featured_ad']); $model = cp_filter($_POST['model']);
add_post_meta($post_id, 'expires', $expires, true); add_post_meta($post_id, 'cp_adURL', $cp_adURL, true); add_post_meta($post_id, 'model', $model, true);
<label for="location"><?php _e('Car Model','cp'); ?> <span>*</span></label> <input type="text" id="model" class="adfields" name="model" size="60" maxlength="100" value="<?php echo stripslashes($_POST['model']); ?>" />
<p class="prdetails"> ...
<?php _e('Car Model'); ?>: <?php echo get_post_meta($post->ID, "model", true); ?>
$customs = Array('name', 'price', 'phone', 'location');
$customs = Array('name', 'price', 'phone', 'location', 'model');
There are currently 1 users browsing this thread. (0 members and 1 guests)