JezK
Edit File: taxonomy-rentcat.php
<!-- Archive Kategori Tour - Oketheme.com --> <?php get_header();?> <div id="headback"> <div class="titleheader"> <h1><i class="glyphicon glyphicon-flag"></i> <?php single_cat_title(); ?> <span class="vsmall">(<?php $category = get_queried_object(); echo $category->count; ?>)</span></h1> <p> <?php if (category_description('') != '') { echo category_description(''); } else { if ($oketheme['translate'] == 'id') { echo 'Berikut ini adalah armada kami pada kategori '; echo single_cat_title(); } else { echo 'Here is our vehicles in category '; echo single_cat_title(); } } ?> </p> <div class="rentswrap"> <?php if ($oketheme['translate'] == 'id') { wp_dropdown_categories( 'show_option_none=Pilih Kategori&taxonomy=rentcat&value_field=slug&class=rentsearch&show_count=1' ); } else { wp_dropdown_categories( 'show_option_none=Choose Category&taxonomy=rentcat&value_field=slug&class=rentsearch&show_count=1' ); }?> </div> </div> </div> <div id="conwrap"> <?php if (have_posts()) { echo '<div class="gridpad">'; while (have_posts()) : the_post(); get_template_part('loop-rental'); endwhile; echo '</div>'; okepagination(); } else { if ($oketheme['translate'] == 'id') {?> <div class="warning"><h2 style="margin:0;text-align:center">Maaf, belum tersedia armada untuk ditampilkan :(</h2></div> <?php } else { ?> <div class="warning"><h2 style="margin:0;text-align:center">Sorry, no vehicle yet :(</h3></div> <?php } } ?> </div> <?php get_footer(); ?> <script type="text/javascript"> var dropdown = document.getElementById("cat"); function onCatChange() { location.href = "<?php echo esc_url( home_url( '/' ) ); ?>/rentcat/"+dropdown.options[dropdown.selectedIndex].value; } dropdown.onchange = onCatChange; </script>