$args = array(
'post_type' => 'news',
'publish' => true,
'posts_per_page' => 2,
'has-archive' => false
);
<?php
/*
* Template Name: Новости
*/
get_header(); ?>
<div id="primary" class="site-content">
<div id="content" role="main">
44545554544
</div><!-- #content -->
</div><!-- #primary -->
<?php get_footer(); ?>
img = document.createElement('img'),
$img = $(img),
$html .= sprintf( '<img src="%s" alt="%s" class="wp-post-image" />', esc_url( wc_placeholder_img_src( 'woocommerce_single' ) ), esc_html__( 'Awaiting product image', 'woocommerce' ) );
'zoom_enabled' => apply_filters( 'woocommerce_single_product_zoom_enabled', get_theme_support( 'wc-product-gallery-zoom' ) ),
'zoom_options' => apply_filters( 'woocommerce_single_product_zoom_options', array() ),
'photoswipe_enabled' => apply_filters( 'woocommerce_single_product_photoswipe_enabled', get_theme_support( 'wc-product-gallery-lightbox' ) ),
'photoswipe_options' => apply_filters(
все можно, но мне не совсем понятно зачем
const dropSelect = $('.dropdown span');
const dropOption = $('.dropdown ul li');
dropSelect.on('click', function() {
$(this).siblings('ul').slideToggle('fast');
});
dropOption.on('click', function() {
let textOption = $(this).text();
$(this).parents().find('span').text(textOption);
dropOption.parent().slideToggle('fast');
$('select option[value="'+textOption+'"]').prop('selected', true);
});
$('select').on('change', function() {
console.log(this.value);
dropOption.text($(this).val());
});
'has_archive' => true
Я его удалил и все заработало )