../wp-json/?lang=en/contact-form-7/v1/contact-forms/776/feedback
/?lang=en
$commentsCount = get_comments_number();
echo $commentsCount;
// подключаем стили и скрипты
function register_styles_scripts() {
}
add_action('wp_enqueue_scripts', 'register_styles_scripts');
wp_register_style( 'jquery-ui.min', get_template_directory_uri() . '/assets/css/jquery-ui.min.css');
wp_enqueue_style( 'jquery-ui.min');
wp_enqueue_style( 'jquery-ui.min', get_template_directory_uri() . '/assets/css/jquery-ui.min.css');
wp_register_script( 'jquery.min', get_template_directory_uri() . '/assets/js/jquery.min.js');
wp_enqueue_script( 'jquery.min');
wp_deregister_script('jquery');
<div style="
<?php if( get_field('dark_background') ):
echo 'background: #000;';
else:
echo 'background: #fff;';
endif?>
">
Содержимое блока
</div>
mh_magazine_lite_featured_image();
<?php /* Default template for displaying content. */ ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header mh-clearfix"><?php
the_title('<h1 class="entry-title">', '</h1>');
mh_post_header(); ?>
</header>
<?php dynamic_sidebar('posts-1'); ?>
<div class="entry-content mh-clearfix"><?php
// mh_magazine_lite_featured_image();
the_content(); ?>
</div><?php
the_tags('<div class="entry-tags mh-clearfix"><i class="fa fa-tag"></i><ul><li>','</li><li>','</li></ul></div>');
dynamic_sidebar('posts-2'); ?>
</article>
#ez-toc-container.counter-decimal ul.ez-toc-list li a::before, .ez-toc-widget-container.counter-decimal ul.ez-toc-list li a::before
#ez-toc-container.counter-decimal ul.ez-toc-list li a::before, .ez-toc-widget-container.counter-decimal ul.ez-toc-list li a::before {
content:unset !important;
}
'rewrite' => array('slug' => 'blabla', 'with_front' => false),
'tax_query' => 'pechati-v-metallicheskom-korpuse');
'tax_query' => array(
array(
'taxonomy' => 'product_cat',
'field' => 'slug',
'terms' => 'pechati-v-metallicheskom-korpuse'
)
)