Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header('single'); ?>
- <section>
- <div class="gap black-layer opc5">
- <div class="fixed-bg2" style="background-image: url(<?php echo get_template_directory_uri(); ?>/assets/images/testeira-produto.jpg);"></div>
- <div class="container">
- <div class="pag-tp">
- <div class="pag-tp-inr">
- <h1 itemprop="headline">Modelos de VeĆculo</h1>
- </div>
- <ol class="breadcrumb brd-rd30 theme-bg">
- <li class="breadcrumb-item"><a href="#" title="" itemprop="url" style="text-transform:uppercase;"><?php echo single_cat_title(); ?></a></li>
- </ol>
- </div>
- </div>
- </div>
- </section>
- <section>
- <div class="gap">
- <div class="container">
- <div class="remove-ext3">
- <div class="row">
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <?php $terms = get_the_terms( $post->ID , 'modelo' );
- if ( $terms != null ){
- foreach( $terms as $term ) {
- $term_link = get_term_link( $term, 'modelo' );
- echo '<div class="col-md-3 col-sm-12">';
- echo '<div class="product-box">';
- echo '<div class="product-info">';
- echo '<span class="price"><ins>MODELO</ins></span>';
- echo '<h5 itemprop="headline"><a href="' . $term_link . '">' . $term->name . '</a></h5>';
- echo '</div>';
- echo '</div>';
- echo '</div>';} } ?>
- <?php endwhile; endif; wp_reset_postdata(); ?>
- </div>
- </div>
- </div>
- </div>
- </section>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement