JezK
Edit File: single-rental.php
<!-- Single Rental - Oketheme.com --> <?php get_header();?> <?php if (have_posts()): while (have_posts()) : the_post(); setPostViews(get_the_ID()); ?> <div id="headback"> <div class="titleheader"> <h1><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1> <?php the_terms( $post->ID, 'rentcat', 'Kategori: ', ', ', ' ' );?> </div> </div> <div id="conwrap"> <?php if (get_the_content()) { echo '<div class="wrap-post">'; the_content(); echo '</div>'; } ?> <div class="rentdetail"> <?php if ( has_post_thumbnail()) { the_post_thumbnail('l600'); } else {?> <img width="600" height="390" src="<?php echo get_template_directory_uri(); ?>/images/600.jpg" alt="<?php the_title(); ?>"> <?php } ?> <?php if (rwmb_meta( 'rent_fasilitas')[0] != ''){ echo $oketheme['translate'] == 'id'?'<h3>Fasilitas</h3>':'<h3>Facilities</h3>'; echo '<ul class="medium">'; foreach ( rwmb_meta( 'rent_fasilitas') as $pil ) { echo '<li>'.$pil[0].'</li>'; } echo '</ul>'; }?> <?php echo $oketheme['translate'] == 'id'?'<h3>Harga Sewa</h3>':'<h3>Rent Price</h3>'; harga_rental(); ?> <a href="#kontak" class="pop"> <button class="ibtn"> <i class="el-icon-phone"></i> <?=$oketheme['translate'] == 'id'?"Kontak Kami":"Contact Us";?> </button> </a> <?php edit_post_link('<button>Edit Detail</button>');?> </div> <?php get_template_part('share'); ?> </div> <?php endwhile; endif; randomrent(); get_footer(); ?>