File: /var/www/vhosts/greenclinic.kz/httpdocs/wp-content/themes/GreenClinic/archive-doctor.php
<?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>
<style>
.tabheader__items {
overflow-y: scroll;
height: 850px;
direction: rtl;
}
body {
background: url(/wp-content/themes/GreenClinic/images/Rectmin.png)!important;
background-size: 100%;
}
.tabheader__items{
padding-left:30px;
}
.tabheader__item{
padding-left:0;
}
.tabheader__item_active {
background: #fff;
}
.tabheader__items::-webkit-scrollbar-track {
background-color: rgba(219, 219, 219, 0.2);
border-radius: 10px;
}
</style>
<section class="section__margin" style="margin-bottom:50px">
<div class="container">
<div class="section__title">
<h3 class="service__title title">Специалисты</h3>
</div>
<div class="team-right__inner">
<div class="tabheader">
<div class="tabheader__items">
<?php
$media_news = new WP_Query( array(
'orderby' => 'date', // тип сортировки (в данном случае по дате)
'post_type' => 'doctor',
'posts_per_page' => '2000'
));
?>
<?php while ( $media_news->have_posts() ) { $media_news->the_post(); ?>
<div class="tabheader__item">
<?php get_template_part( 'components/component', 'doctor2' ); ?>
</div>
<?php } ?>
</div>
</div>
<div class="tabcontent-wrap">
<div class="tabcontent-wrap">
<?php while ( $media_news->have_posts() ) { $media_news->the_post(); ?>
<?php get_template_part( 'components/component', 'doctor3' ); ?>
<?php } ?>
</div>
</div>
</div>
</div>
</section>
<?php get_footer(); ?>