Advertisement
Guest User

Untitled

a guest
Aug 16th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.92 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <?php get_template_part('parts/before'); ?>
  3.           <div class="col-md-9 col-md-push-3">
  4.             <section class="content">
  5.               <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  6.                 <?php  the_post_thumbnail('full'); ?>
  7.                       <p><strong>Клуб:</strong> <?php echo get_post_meta(get_the_ID(), 'club', true); ?><br>
  8.                       <strong>Адрес:</strong> <?php echo get_post_meta(get_the_ID(), 'address', true); ?></p>
  9.                       <div class="area-card__meta" style="padding: 0;">
  10.                         <div class="area-card__rating">
  11.                           <div class="area-card__stars"><span style="width: <?php echo get_post_meta(get_the_ID(), 'rating', true); ?>;"></span></div>
  12.                           <p>отзывов: <span><?php echo $query->post_count; ?></span></p>
  13.                         </div>
  14.                       </div>
  15.               <?php the_content(); ?>
  16.               <?php  
  17.     $responses_args = array(
  18.         'post_type'      => 'response',
  19.   'meta_key'   => 'area',
  20.   'meta_value' => get_the_id()
  21.     );          
  22.     $responses_query = new WP_Query( $responses_args );if($responses_query->have_posts()):  ?>
  23.                       <h2 class="title">  Отзывы</h2>
  24.             <section class="responses">
  25.               <?php while($responses_query->have_posts()) : $responses_query->the_post(); ?>
  26.               <div class="response">
  27.                 <?php the_content(); ?>
  28.               </div>
  29.               <?php endwhile; ?>
  30.             </section>
  31.               <?php endif; ?>
  32.               <?php endwhile; else: ?>
  33.               Не найдено
  34.               <?php endif; ?>
  35.             </section>
  36.           </div>
  37.           <div class="col-md-3 col-md-pull-9">
  38.             <?php get_sidebar(); ?>
  39.           </div>
  40. <?php get_template_part('parts/after'); ?>
  41. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement