• Resolved jfdesignco

    (@jfdesignco)


    I am trying to show the additional fields i added in the metaboxes to show up on the front end of my site. i can’t seem to figure out the if statements to write in order to do so…help!!!

Viewing 1 replies (of 1 total)
  • 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 1 replies (of 1 total)
  • The topic ‘Showing a pricing field on the front end’ is closed to new replies.