Custom field problem
-
How Can I get a ReviewAZON_LowestNewPrice field to be checked if price field is empty using the code below?
And if the ReviewAZON_LowestNewPrice field isn’t empty then display it.
<?php if(get_post_meta($post->ID, 'Authors', true) == '') { ?> <?php $price = get_post_meta($post->ID, 'price', true); if ( $price ) { echo '<span class="price-tag"> '; } else { echo '<span class="band2 outofstock2"></span>'; } ?> <?php if(get_post_meta($post->ID, 'price', true) != "") { ?> <span><?php echo $Price = get_post_meta($post->ID, 'price', true); ?></span> <?php } ?> <?php } ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom field problem’ is closed to new replies.