<?php $recipes = new WP_Query(array('post_type' => 'recipes'));?>
<?php if ( $recipes->have_posts() ) : ?>
<ul class="woocommerce-product__recipes__list recipes-container">
<?php while ( $recipes->have_posts() ) : $recipes->the_post(); ?>
<li class="woocommerce-product__recipes__item recipes-item">
<div class="recipes-img"><?php echo get_the_post_thumbnail( $post_ids, 'full'); ?></div>
<div class="recipes-title"><h3><?php echo get_the_title( $post_ids ); ?></h3></div>
<a href="<?php echo get_permalink( $post_ids ); ?>" class="woocommerce-product__recipes__link recipes-link"></a>
</li>
<?php endwhile; ?>
</ul>
<?php else: ?>
<?php endif; ?>
<?php wp_reset_query(); ?>
<?php $recipes = get_field( 'recipes' ); ?>
<?php if ( $recipes ) : ?>
<?php foreach ( $recipes as $post_ids ) : ?>
<a href="<?php echo get_permalink( $post_ids ); ?>">
<?php echo get_the_post_thumbnail( $post_ids, 'full'); ?>
<?php echo get_the_title( $post_ids ); ?>
</a>
<?php endforeach; ?>
<?php endif; ?>
<?php
$locale = get_locale();
if ($locale == 'ru-RU'){
$contact-form = '[contact-form-7 id="158" title="Контактная форма"]';
}
else ($locale == 'uk'){
$contact-form = '[contact-form-7 id="485" title="Контактна форма"]';
}
?>
<?php echo do_shortcode( '$locale' ); ?>