<!-- Display cp_region data or default $ sign --> <div class="cp_region"> <span>ACCEPTING : </span> <?php $cp_region = get_post_meta( $post->ID, 'cp_region', true ); if ( empty( $cp_region ) ) { echo '$'; // Display default $ sign } else { echo $cp_region; // Display cp_region value } ?> </div>
There are currently 1 users browsing this thread. (0 members and 1 guests)