So this is probably going to be a total novice question but I have two fields in particular I am trying to get to work in synergy when an absolute numerical value of zero or "0" is defined for $price to update another field $pricecustom to display "Call for Price". This is on a template and I need to automate this rule because I would have to spend hours daily updating vehicles that do not show a price (because it hasn't been updated or the field shows 0 in the XML files I receive daily) This is all I have so far: <?php if($pricecustom) { ?> <?php echo "E-mail for Price"; ?> <?php } else { ?> <?php echo $before . $price . $after ?> <?php if($v) { echo $v; } ?> <?php if (get_option('wp_site') == 'Real Estate') { ?><?php if ($bor == "Rent") { echo stripslashes(get_option('wp_permonthtext'));} ?> <?php } ?> <?php } ?> Code (markup):
Try this <?php if($pricecustom || intval($price) == 0) { echo "E-mail for Price"; } else { echo $before . $price . $after; if($v) { echo $v; } if (get_option('wp_site') == 'Real Estate') { if ($bor == "Rent") { echo stripslashes(get_option('wp_permonthtext')); } } } ?> PHP: and you don't need to hop in and out of php if you aren't doing anything when you get there.
I responded to the original post prior to the edited one you put up. That worked perfectly! You are awesome!