<div class="vacancies">
<?php foreach(getVacancies() as $vpost): ?>
<div class="vac-card">
<div class="pic" style="background-image: url(<?php echo get_the_post_thumbnail_url( $vpost->ID, 'large'); ?>);"></div>
<p><?php echo $vpost->post_title; ?></p>
</div>
<?php endforeach; ?>
<a href="/vse-vakansii">
<div class="wrap-button"><button>Больше вакансий</button></div>
</a>
</div>
<div class="vacancies">
<?php
$args = array(
'numberposts' => 20,
'orderby' => 'count',
'order' => 'DESC',
'hide_empty' => false
);
?>
<?php foreach(getVacancies() as $vpost): ?>
<div class="vac-card">
<div class="pic" style="background-image: url(<?php echo get_the_post_thumbnail_url( $vpost->ID, 'large'); ?>);"></div>
<p><?php echo $vpost->post_title; ?></p>
</div>
<?php endforeach; ?>
</div>
<?php foreach(getMarks() as $markspost): ?>
<div class="mark-slide">
<?php echo get_the_post_thumbnail( $markspost->ID, 'large'); ?>
<div class="info">
<p class="title">
<?php $markspost->post_title; ?>
</p>
<table>
<tr>
<td class="one">Количество камер</td>
<td><?php the_field('kol_cames') ?></td>
</tr>
<tr>
<td class="one">Монтажная ширина</td>
<td><?php the_field('montage_width') ?></td>
</tr>
<tr>
<td class="one">Контур уплотнителя</td>
<td><?php the_field('kontur_upl') ?></td>
</tr>
<tr>
<td class="one">Звукоизоляция</td>
<td><?php the_field('sound') ?></td>
</tr>
</table>
<div class="button-default"><a href="#">Подробнее</a></div>
</div>
</div>
<?php endforeach; ?>
<?php foreach(getMarks() as $markspost): ?>
<div class="mark-slide">
<?php echo get_the_post_thumbnail( $markspost->ID, 'large'); ?>
<div class="info">
<p class="title">
<?php $markspost->post_title; ?>
</p>
<table>
<tr>
<td class="one">Количество камер</td>
<td><?php the_field('kol_cames') ?></td>
</tr>
<tr>
<td class="one">Монтажная ширина</td>
<td><?php the_field('montage_width') ?></td>
</tr>
<tr>
<td class="one">Контур уплотнителя</td>
<td><?php the_field('kontur_upl') ?></td>
</tr>
<tr>
<td class="one">Звукоизоляция</td>
<td><?php the_field('sound') ?></td>
</tr>
</table>
<div class="button-default"><a href="#">Подробнее</a></div>
</div>
</div>
<?php endforeach; ?>
<?php
/*
Template Name: Шаблон алкоголизма
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main">
<div class="content-wrapper">
<?php
$args = array( 'post_type' => 'articles', 'category_name' => 'lechenie-alkogolizma', 'posts_per_page' => -1 );
if ( have_posts() ) :
?>
<header class="entry-header">
<span class="title"><?php printf( __( 'Архив: %s', 'medical' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></span>
<?php if ( category_description() ) : // Show an optional category description ?>
<div class="archive-meta"><?php echo category_description(); ?></div>
<?php endif; ?>
</header><!-- .archive-header -->
<?php
/* Start the Loop */
while ( have_posts() ) :
the_post();
/* Include the post format-specific template for the content. If you want to
* this in a child theme then include a file called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content-alc', get_post_format() );
endwhile;
?>
<?php else : ?>
<?php get_template_part( 'template-parts/content', 'none' ); ?>
<?php endif; ?>
</div>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_footer(); ?>