44 lines
1.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<section class="graduation__block offers">
<div class="content">
<div class="headers">
<h2>Предложения</h2>
<p>Мы делаем все, чтобы у ваших детей был незабываемый выпускной вечер</p>
</div>
<div class="row packets center">
<?php
$posts = get_posts( array(
'category' => 0,
'orderby' => 'date',
'order' => 'ASC',
'include' => array(),
'exclude' => array(),
'meta_key' => '',
'meta_value' =>'',
'post_type' => 'armanty_graduation',
'posts_per_page' => 3,
'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса
) );
foreach( $posts as $post ){
setup_postdata($post);?>
<div class="col-4 packet">
<?php
$composition = get_field('graduation_offer_composition');
$arr = [];
foreach ($composition as $point => $value) {
$arr[] = $value['point'];
}
hm_get_template_part('parts/landings/graduation/offer-packet', array(
'title' => get_the_title(),
'price' => get_field('graduation_offer_price'),'description' => $arr
));
?>
</div>
<?php
}
?>
</div>
</div>
</section>