Advertisement
sdcom

Category.php

Aug 14th, 2019
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. <?php get_header('single'); ?>
  2.  
  3. <section>
  4. <div class="gap black-layer opc5">
  5. <div class="fixed-bg2" style="background-image: url(<?php echo get_template_directory_uri(); ?>/assets/images/testeira-produto.jpg);"></div>
  6. <div class="container">
  7. <div class="pag-tp">
  8. <div class="pag-tp-inr">
  9. <h1 itemprop="headline">Modelos de VeĆ­culo</h1>
  10. </div>
  11. <ol class="breadcrumb brd-rd30 theme-bg">
  12. <li class="breadcrumb-item"><a href="#" title="" itemprop="url" style="text-transform:uppercase;"><?php echo single_cat_title(); ?></a></li>
  13. </ol>
  14. </div>
  15. </div>
  16. </div>
  17. </section>
  18.  
  19. <section>
  20. <div class="gap">
  21. <div class="container">
  22. <div class="remove-ext3">
  23. <div class="row">
  24.  
  25. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  26.  
  27. <?php $terms = get_the_terms( $post->ID , 'modelo' );
  28. if ( $terms != null ){
  29. foreach( $terms as $term ) {
  30. $term_link = get_term_link( $term, 'modelo' );
  31. echo '<div class="col-md-3 col-sm-12">';
  32. echo '<div class="product-box">';
  33. echo '<div class="product-info">';
  34. echo '<span class="price"><ins>MODELO</ins></span>';
  35. echo '<h5 itemprop="headline"><a href="' . $term_link . '">' . $term->name . '</a></h5>';
  36. echo '</div>';
  37. echo '</div>';
  38. echo '</div>';} } ?>
  39.  
  40. <?php endwhile; endif; wp_reset_postdata(); ?>
  41.  
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </section>
  47.  
  48.  
  49. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement