Advertisement
Guest User

Untitled

a guest
Nov 13th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.04 KB | None | 0 0
  1. <div class="spotlight spotlight-bg p-t-40 ">
  2. <div class="container">
  3. <div class="heading m-b-30">
  4. <h2>In The Spotlights</h2>
  5. </div>
  6. <div class="packages">
  7. <ul class="row">
  8.  
  9.  
  10.  
  11. <?php
  12.  
  13. $type = array( 'trek');
  14.  
  15. $bikashsoft_loop = new WP_Query( array(
  16. 'post_type' => $type,
  17.  
  18. 'posts_per_page' => '6',
  19. 'order'=>'ASC',
  20.  
  21.  
  22. 'meta_key'=>'in_the_spotlights',
  23.  
  24. 'meta_value'=>'1',
  25.  
  26.  
  27. 'suppress_filters' => true ));
  28. while($bikashsoft_loop->have_posts() ) : $bikashsoft_loop->the_post();
  29. ?>
  30. <li class="col-md-4 col-lg-4">
  31. <div class="package">
  32. <figure class="package-figure">
  33. <?php if(has_post_thumbnail()){
  34. the_post_thumbnail('package');
  35. }
  36. ?>
  37. <span class="package-date">Duration:<?php the_field('duration'); ?></span>
  38.  
  39. </figure>
  40. <div class="package-body">
  41. <h3><a href="<?php the_permalink();?>"><?php the_title(); ?></a> </h3>
  42.  
  43. <div class="package-btm d-flex justify-content-between m-b-10">
  44. <p><strong>Price :</strong>
  45. <i class="fa fa-eur "> </i>
  46. <?php the_field('price'); ?></p>
  47.  
  48.  
  49.  
  50. <div class="package-rating">
  51. <?php while( have_rows('rating') ): the_row();
  52. $grade = get_sub_field('grade');
  53. $star = get_sub_field('star');
  54. ?>
  55. <p class="grade">
  56. <strong>Trip grade :</strong>
  57. <img src="<?php echo get_template_directory_uri(); ?>/images/<?php echo $star ?>.png">
  58. <div class="tooltip_description" style="display:none" title="">
  59. <?php echo $grade; ?>
  60. </div>
  61. </p>
  62. <?php endwhile; ?>
  63. <!-- <i class="fa fa-star tooltipHover ">-->
  64. <!-- <div class="tooltip_description" style="display:none" title="">-->
  65. <!-- Easy-->
  66. <!-- </div>-->
  67. <!--</i>-->
  68.  
  69. <!--<i class="fa fa-star tooltipHover ">-->
  70. <!-- <div class="tooltip_description" style="display:none" title="">-->
  71. <!-- Easy-->
  72. <!-- </div>-->
  73.  
  74.  
  75. <!--</i>-->
  76. <!--<i class="fa fa-star tooltipHover ">-->
  77. <!-- <div class="tooltip_description" style="display:none" title="">-->
  78. <!-- Moderate-->
  79. <!-- </div>-->
  80. <!--</i>-->
  81. <!--<i class="fa fa-star tooltipHover ">-->
  82. <!-- <div class="tooltip_description" style="display:none" title="">-->
  83. <!-- Hard-->
  84. <!-- </div>-->
  85. <!--</i>-->
  86. <!--<i class="fa fa-star tooltipHover ">-->
  87. <!-- <div class="tooltip_description" style="display:none" title="Item 1 Description">-->
  88. <!-- VeryHard-->
  89. <!-- </div>-->
  90. <!--</i>-->
  91. <!--<i class="fa fa-star tooltipHover ">-->
  92. <!-- <div class="tooltip_description" style="display:none" title="Item 1 Description">-->
  93. <!-- Extreme-->
  94. <!-- </div>-->
  95. <!--</i>-->
  96.  
  97. </div>
  98. </div>
  99. <div class="region d-flex justify-content-between align-items-start">
  100. <p class="region-title">
  101.  
  102.  
  103.  
  104. <?php
  105.  
  106. $args = array(
  107. 'hide_empty' => false,
  108. 'taxonomy' => $taxonomy,
  109. //'term_taxonomy_id'=>3,
  110.  
  111. );
  112.  
  113. $catlists = get_terms( $args );
  114. foreach( $catlists as $category ){
  115. print_r($category);
  116. }
  117.  
  118. ?>
  119.  
  120. <strong>Region :</strong>
  121. <?php echo $category->name; ?>
  122.  
  123.  
  124. </p>
  125.  
  126. <a href="<?php the_permalink(); ?>" class="btn btn-primary">View This Trip <i class="fa fa-long-arrow-right "></i></a>
  127. </div>
  128.  
  129.  
  130. </div>
  131. </div>
  132. </li>
  133. <?php endwhile; wp_reset_query(); ?>
  134.  
  135. </ul>
  136. </div>
  137. </div>
  138. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement