.sub-container {
display: flex;
flex-wrap: wrap;
margin-right: calc(50% - 50vw);
}
margin-right: calc(50% - 50vw);
<?php if ( get_field('slider') ) : ?>
<div class="single-top-slider-armida">
</div>
<?php endif; ?>
$query = new WP_Query([
'post_type' => 'hot-tour',
'posts_per_page' => 2,
'paged' => get_query_var('page'),
]);
if ($query->have_posts()) {
while ($query->have_posts()) {
$query->the_post();
the_title();
}
wp_reset_postdata();
}
// Выводим пагинацию
echo paginate_links([
'base' => user_trailingslashit(wp_normalize_path(get_permalink() . '/%#%/')),
'current' => max(1, get_query_var('page')),
'total' => $query->max_num_pages,
]);
$product_cats_ids = wc_get_product_term_ids($values['product_id'], 'product_cat');
echo $product_cats_ids[0];
$terms = get_the_terms($values['product_id'], 'product_cat');
echo $terms[0]->slug;
$stati_children = new WP_Query(array(
'post_type' => 'page',
'post_parent' => get_the_ID(),
'posts_per_page' => 10
)
$post_id = get_post(30);
$content = $post_id->post_content;
echo $content;