[radio radio-978 default:1 "Россыпью" "Тарированный"]
<label> Марка цемента
[select* menu-692 "М500 Д0" "М500 Д20" "М400"] </label>
<label> Упаковка </label>
[radio radio-978 default:1 "Россыпью" "Тарированный"]
<label> Откуда
[select* menu-393 "Кричев" "Костюковичи"] </label>
<label> Куда
[text* text-907] </label>
<label> Ваш e-mail
[email* your-email] </label>
[submit "Отправить"]
<?php the_post();?>
<?= get_the_author(); ?>
function change_product_query($query) {
$query->set( 'posts_per_page', -1 );
}
add_action( 'pre_get_posts', 'change_product_query' );
<?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
)