Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jfdesignco

    (@jfdesignco)

    can anyone help with this?

    Thread Starter jfdesignco

    (@jfdesignco)

    so i resolved the issue using this code:

    <?php if (get_post_meta($post->ID, ‘_ct_starting’, true)); ?> Starting at <?php currency(); ?><?php starting_price(); ?>

    but now both of my pricing options show

    this was the code already there that i had to add to:

    <?php if( (get_post_meta($post->ID, “_ct_price”, true)) != 0 ) { ?><p class=”price marB10″><?php if(has_status(‘for-rent’)) { echo __(‘Rental – ‘, ‘contempo’); } elseif(has_status(‘lease’)) { echo __(‘Lease – ‘, ‘contempo’); } ?><?php currency(); ?><?php listing_price(); ?><?php if(is_active_widget(‘loancalc_display’)) { if(has_status(‘for-rent’)) { } else { ?><?php _e(‘Calculate Payment’, ‘contempo’); ?><?php } ?><?php } ?></p><?php } ?>

    so i want to right a else statement — basically saying to only display the information that is filled in — so if there is a amount in “_ct_price” display that – if not then display “_ct_starting”

    help???!?!

Viewing 2 replies - 1 through 2 (of 2 total)