File: /var/www/vhosts/greenclinic.kz/httpdocs/wp-content/themes/GreenClinic/template-departments.php
<?php
/*
Template Name: Стационар
Template Post Type: departments
*/
?>
<?php get_header(); ?>
<div class="page__banner--bread">
<div class="bread-line">
<div class="container">
<?php if( function_exists('dimox_breadcrumbs') ) dimox_breadcrumbs(); ?>
</div>
</div>
</div>
<section class="section__margin">
<div class="container">
<div class="section__title">
<h3 class="service__title title space-title"><?php the_title(); ?></h3>
</div>
<div class="section__polyclinic--background">
<img class="section__polyclinic--img" src="<?php echo get_field('photo'); ?>" alt="<?php the_field( the_title()); ?> в Нур-Султане" title="<?php the_field( the_title()); ?> в Нур-Султане" />
<div class="white-block wb-top">
<div class="page__blocktext">
<?php the_content(); ?>
</div>
</div>
<div class="white-block ">
<div class="page__blocktext">
<?php echo get_field('zagolovka'); ?>
</div>
</div>
<br><br>
<div class="section__polyclinic--inside">
<div class="section__polyclinic--content">
<section class="service service-stac-top">
<h3 class="e title">Услуги<p class="usl-s-title">Основные медицинские услуги, оказываемые многопрофильным хирургическим стационаром Green Clinic</p></h3>
<div class="services-btn">
<div class="flex usl_flex">
<?php $control17 = new WP_Query( array(
'orderby' => 'date', // тип сортировки (в данном случае по дате)
'posts_per_page' => -1,
'order' => 'ASC',
'post_type' => 'control',
'tax_query' => array(
array (
'taxonomy' => 'control_category',
'field' => 'term_id',
'terms' => 17
)
),
));?>
<?php while ( $control17->have_posts() ) { $control17->the_post(); ?>
<?php get_template_part( 'components/component', 'service17' ); ?>
<?php } ?>
<?php //endwhile; ?>
<?php wp_reset_postdata(); ?>
</div>
</div>
</section>
<h3 class="service__title title space-title">Галерея </h3>
<section class="news docs">
<div class="news-slider3">
<div class="swiper-wrapper">
<?php while(has_sub_field('foto-2')): ?>
<div class="news-slide swiper-slide">
<div class="gallery-img">
<img src="<?php the_sub_field('foto_otdeleniya-2'); ?>" alt="">
</div>
</div>
<?php endwhile; ?>
</div>
<div class="swiper-button-next"></div>
<div class="swiper-button-prev"></div>
</div>
</section>
</div>
</div>
</div>
</div>
</section>
<?php get_footer(); ?>