single_cat_title() — функция для вывода названия текущей категории

single_cat_title() — функция для вывода названия текущей категории

Функция работает только на страницах категорий, меток и архивах других таксономий, при этом она должна находиться вне цикла.

То есть, если функция была использована на странице архива категорий — то она выведет/вернёт название текущей категории, на странице архива меток — название текущей метки, на странице архива другой таксономии — название текущего элемента таксономии.

Вывести название текущего элемента таксономии вы также можете функцией single_term_title().

Как вывести имя категории вне цикла, если известен только ID? Легко, для этого используем функцию get_category().

Если же нужно вывести названия рубрик записи, то вам в помощь функции get_the_category() и the_category().

single_cat_title( $prefix = '', $display = true )
$prefix
(строка) текст, который нужно вывести перед названием категории,
$display
(логическое) вывести или вернуть результат (записать в переменную, по умолчанию имена рубрик/меток сразу выводятся — true. Если установлено false, то параметр $display будет игнорироваться.

Примеры использования функции

single_cat_title('Вы находитесь в категории: '); ?>

Не поленюсь сделать скриншот — в итоге в исходном HTML-коде (Ctrl + U) получаем вот что:

Как видите, имя категории выводится без ссылки.

Выводимое значение функции также можно записать в переменную:

$current_category = single_cat_title('', false); echo "

Вы находитесь в категории: $current_category

"
;

В итоге получится то же самое, что и в предыдущем примере.

Фильтры single_cat_title, single_tag_title, single_term_title

В случае, если функция single_cat_title() была использована на странице какой-нибудь рубрики, к выводимому результату можно применить фильтр:

$term_name = apply_filters( 'single_cat_title', $term->name );

Если на странице метки:

$term_name = apply_filters( 'single_tag_title', $term->name );

Для остальных таксономий:

$term_name = apply_filters( 'single_term_title', $term->name );

Определение типа текущей страницы производится условными тегами is_category(), is_tag() и is_tax().

$term->name
(строка) название текущей рубрики / метки или элемента таксономии.

Небольшой пример — давайте для рубрики с ID = 5 всегда будем выводить заголовок с HTML-классом cat5, а для всех остальных категорий — просто заголовок

, в таком случае код будет следующим:

function true_cat5_with_class( $cat_name ){ 	if( is_category( 5 ) ) { 		return '

' . $cat_name . '

'
; } else { return '

' . $cat_name . '

'
; } }   add_filter('single_cat_title', 'true_cat5_with_class', 10, 1);

Перед тем, как будете что-то менять через фильтры, обратите внимание, что single_cat_title() может также использоваться в других местах сайта, например при заполнении тега </code>.</p> <h2>Функция single_term_title()</h2> <p>Начиная с версии WordPress 3.1, функция <code>single_cat_title()</code> работает на основе single_term_title(), причем она использует эту функцию как есть, без каких-либо дополнительных действий с аргументами. Следующий код взят из файла движка WordPress <code>general-template.php</code>:</p> <div> <div> <pre class="php"><span>function</span> single_cat_title<span>(</span> <span>$prefix</span> = <span>''</span>, <span>$display</span> = <span>true</span> <span>)</span> <span>{</span> <span>return</span> single_term_title<span>(</span> <span>$prefix</span>, <span>$display</span> <span>)</span>; <span>}</span></pre> </div> </div> <p>Значения по умолчанию параметров <code>$prefix</code> и <code>$display</code> у функции single_term_title() точно такие же, поэтому, если хотите, для вывода названий меток и рубрик вы можете использовать её — абсолютно никакой разницы нет, разве что появятся какие-нибудь изменения в следующих версиях WordPress.</p> </div> </div> <div class="jeg_ad jeg_article jnews_content_bottom_ads "><div class='ads-wrapper '><a href='' class='adlink ads_image '><img src='https://refreak.ru/wp-content/uploads/2020/01/ad_728x90.png' alt='' data-pin-no-hover="true"></a></div></div><div class="jnews_prev_next_container"></div><div class="jnews_author_box_container"></div><div class="jnews_related_post_container"><div class="jeg_postblock_23 jeg_postblock jeg_module_hook jeg_pagination_disable jeg_col_2o3 jnews_module_789_0_5f707022951ee " data-unique="jnews_module_789_0_5f707022951ee"> <div class="jeg_block_heading jeg_block_heading_8 jeg_subcat_right"> <h3 class="jeg_block_title"><span>Related<strong> Posts</strong></span></h3> </div> <div class="jeg_block_container"> <div class="jeg_posts_wrap"> <div class="jeg_posts jeg_load_more_flag"> <article class="jeg_post jeg_pl_md_1 post-1007 post type-post status-publish format-standard has-post-thumbnail hentry category-wordpress"> <div class="jeg_thumb"> <a href="https://refreak.ru/skryvaem-versiyu-wordpress-iz-rss-lenty-i-iz-wp_head/"><div class="thumbnail-container animate-lazy size-715 "><img width="350" height="250" src="https://refreak.ru/wp-content/themes/jnews/assets/img/jeg-empty.png" class="attachment-jnews-350x250 size-jnews-350x250 lazyload wp-post-image" alt="" data-src="https://refreak.ru/wp-content/uploads/2020/01/10647-350x250.jpg" data-sizes="auto" data-srcset="https://refreak.ru/wp-content/uploads/2020/01/10647-350x250.jpg 350w, https://refreak.ru/wp-content/uploads/2020/01/10647-120x86.jpg 120w" data-expand="700" /></div></a> <div class="jeg_post_category"> <span><a href="https://refreak.ru/category/wordpress/" class="category-wordpress">WordPress</a></span> </div> </div> <div class="jeg_postblock_content"> <h3 class="jeg_post_title"> <a href="https://refreak.ru/skryvaem-versiyu-wordpress-iz-rss-lenty-i-iz-wp_head/">Скрываем версию WordPress из RSS-ленты и из wp_head()</a> </h3> <div class="jeg_post_excerpt"> <p>Скрываем версию WordPress из RSS-ленты и из wp_head() Если вы загляните в свою RSS-ленту в виде XML, например через Google...</p> </div> <div class="jeg_post_meta"><div class="jeg_meta_date"><a href="https://refreak.ru/skryvaem-versiyu-wordpress-iz-rss-lenty-i-iz-wp_head/"><i class="fa fa-clock-o"></i> 05.01.2020</a></div></div> </div> </article><article class="jeg_post jeg_pl_md_1 post-1006 post type-post status-publish format-standard has-post-thumbnail hentry category-wordpress"> <div class="jeg_thumb"> <a href="https://refreak.ru/wp_register_style-registriruet-fayly-css-stiley/"><div class="thumbnail-container animate-lazy size-715 "><img width="350" height="250" src="https://refreak.ru/wp-content/themes/jnews/assets/img/jeg-empty.png" class="attachment-jnews-350x250 size-jnews-350x250 lazyload wp-post-image" alt="" data-src="https://refreak.ru/wp-content/uploads/2020/01/10647-350x250.jpg" data-sizes="auto" data-srcset="https://refreak.ru/wp-content/uploads/2020/01/10647-350x250.jpg 350w, https://refreak.ru/wp-content/uploads/2020/01/10647-120x86.jpg 120w" data-expand="700" /></div></a> <div class="jeg_post_category"> <span><a href="https://refreak.ru/category/wordpress/" class="category-wordpress">WordPress</a></span> </div> </div> <div class="jeg_postblock_content"> <h3 class="jeg_post_title"> <a href="https://refreak.ru/wp_register_style-registriruet-fayly-css-stiley/">wp_register_style() — регистрирует файлы CSS-стилей</a> </h3> <div class="jeg_post_excerpt"> <p>wp_register_style() — регистрирует файлы CSS-стилей Присваивает CSS-файлу идентификатор, в дальнейшем, используя который, можно подключать файл на сайт через функцию wp_enqueue_style()....</p> </div> <div class="jeg_post_meta"><div class="jeg_meta_date"><a href="https://refreak.ru/wp_register_style-registriruet-fayly-css-stiley/"><i class="fa fa-clock-o"></i> 05.01.2020</a></div></div> </div> </article><article class="jeg_post jeg_pl_md_1 post-1005 post type-post status-publish format-standard has-post-thumbnail hentry category-wordpress"> <div class="jeg_thumb"> <a href="https://refreak.ru/wp_register_script-registriruet-fayly-javascript/"><div class="thumbnail-container animate-lazy size-715 "><img width="350" height="250" src="https://refreak.ru/wp-content/themes/jnews/assets/img/jeg-empty.png" class="attachment-jnews-350x250 size-jnews-350x250 lazyload wp-post-image" alt="" data-src="https://refreak.ru/wp-content/uploads/2020/01/10647-350x250.jpg" data-sizes="auto" data-srcset="https://refreak.ru/wp-content/uploads/2020/01/10647-350x250.jpg 350w, https://refreak.ru/wp-content/uploads/2020/01/10647-120x86.jpg 120w" data-expand="700" /></div></a> <div class="jeg_post_category"> <span><a href="https://refreak.ru/category/wordpress/" class="category-wordpress">WordPress</a></span> </div> </div> <div class="jeg_postblock_content"> <h3 class="jeg_post_title"> <a href="https://refreak.ru/wp_register_script-registriruet-fayly-javascript/">wp_register_script() — регистрирует файлы JavaScript</a> </h3> <div class="jeg_post_excerpt"> <p>wp_register_script() — регистрирует файлы JavaScript Под регистрацией JavaScript-файлов в данном случае подразумевается присвоение файлу какого-то определенного идентификатора (рабочего названия), впоследствии,...</p> </div> <div class="jeg_post_meta"><div class="jeg_meta_date"><a href="https://refreak.ru/wp_register_script-registriruet-fayly-javascript/"><i class="fa fa-clock-o"></i> 05.01.2020</a></div></div> </div> </article><article class="jeg_post jeg_pl_md_1 post-1004 post type-post status-publish format-standard has-post-thumbnail hentry category-wordpress"> <div class="jeg_thumb"> <a href="https://refreak.ru/wp_deregister_script-otmenyaet-registraciyu-fayla-javascript/"><div class="thumbnail-container animate-lazy size-715 "><img width="350" height="250" src="https://refreak.ru/wp-content/themes/jnews/assets/img/jeg-empty.png" class="attachment-jnews-350x250 size-jnews-350x250 lazyload wp-post-image" alt="" data-src="https://refreak.ru/wp-content/uploads/2020/01/10647-350x250.jpg" data-sizes="auto" data-srcset="https://refreak.ru/wp-content/uploads/2020/01/10647-350x250.jpg 350w, https://refreak.ru/wp-content/uploads/2020/01/10647-120x86.jpg 120w" data-expand="700" /></div></a> <div class="jeg_post_category"> <span><a href="https://refreak.ru/category/wordpress/" class="category-wordpress">WordPress</a></span> </div> </div> <div class="jeg_postblock_content"> <h3 class="jeg_post_title"> <a href="https://refreak.ru/wp_deregister_script-otmenyaet-registraciyu-fayla-javascript/">wp_deregister_script() — отменяет регистрацию файла JavaScript</a> </h3> <div class="jeg_post_excerpt"> <p>wp_deregister_script() — отменяет регистрацию файла JavaScript Отменяет регистрацию указанного в параметрах JavaScript-файла, тем самым у нас появляется возможность перерегистрировать свою...</p> </div> <div class="jeg_post_meta"><div class="jeg_meta_trending"><a href="https://refreak.ru/wp_deregister_script-otmenyaet-registraciyu-fayla-javascript/"><i class="fa fa-bolt"></i></a></div><div class="jeg_meta_date"><a href="https://refreak.ru/wp_deregister_script-otmenyaet-registraciyu-fayla-javascript/"><i class="fa fa-clock-o"></i> 07.01.2020</a></div></div> </div> </article> </div> </div> <div class='module-overlay'> <div class='preloader_type preloader_dot'> <div class="module-preloader jeg_preloader dot"> <span></span><span></span><span></span> </div> <div class="module-preloader jeg_preloader circle"> <div class="jnews_preloader_circle_outer"> <div class="jnews_preloader_circle_inner"></div> </div> </div> <div class="module-preloader jeg_preloader square"> <div class="jeg_square"><div class="jeg_square_inner"></div></div> </div> </div> </div> </div> <div class="jeg_block_navigation"> <div class='navigation_overlay'><div class='module-preloader jeg_preloader'><span></span><span></span><span></span></div></div> </div> <script>var jnews_module_789_0_5f707022951ee = {"header_icon":"","first_title":"Related","second_title":" Posts","url":"","header_type":"heading_8","header_background":"","header_secondary_background":"","header_text_color":"","header_line_color":"","header_accent_color":"","header_filter_category":"","header_filter_author":"","header_filter_tag":"","header_filter_text":"All","post_type":"post","content_type":"all","number_post":"4","post_offset":0,"unique_content":"disable","include_post":"","exclude_post":789,"include_category":"27","exclude_category":"","include_author":"","include_tag":"","exclude_tag":"","sort_by":"latest","date_format":"default","date_format_custom":"Y\/m\/d","excerpt_length":"20","excerpt_ellipsis":"...","pagination_mode":"disable","pagination_nextprev_showtext":"","pagination_number_post":"4","pagination_scroll_limit":3,"boxed":"","boxed_shadow":"","el_id":"","el_class":"","scheme":"","column_width":"auto","title_color":"","accent_color":"","alt_color":"","excerpt_color":"","css":"","paged":1,"column_class":"jeg_col_2o3","class":"jnews_block_23"};</script> </div></div><div class="jnews_popup_post_container"> <section class="jeg_popup_post"> <span class="caption">Next Post</span> <div class="jeg_popup_content"> <div class="jeg_thumb"> <a href="https://refreak.ru/the_category-vyvodit-ssylki-na-vse-rubriki-v-kotoryh-nahoditsya-post/"> <div class="thumbnail-container animate-lazy size-1000 "><img width="75" height="75" src="https://refreak.ru/wp-content/themes/jnews/assets/img/jeg-empty.png" class="attachment-jnews-75x75 size-jnews-75x75 lazyload wp-post-image" alt="" data-src="https://refreak.ru/wp-content/uploads/2020/01/10647-75x75.jpg" data-sizes="auto" data-srcset="https://refreak.ru/wp-content/uploads/2020/01/10647-75x75.jpg 75w, https://refreak.ru/wp-content/uploads/2020/01/10647-150x150.jpg 150w" data-expand="700" /></div> </a> </div> <h3 class="post-title"> <a href="https://refreak.ru/the_category-vyvodit-ssylki-na-vse-rubriki-v-kotoryh-nahoditsya-post/"> the_category() — выводит ссылки на все рубрики, в которых находится пост </a> </h3> </div> <div class="jeg_popup_content"> <div class="jeg_thumb"> <a href="https://refreak.ru/wp_insert_category-funkciya-dlya-sozdaniya-i-redaktirovaniya-kategoriy-na-bloge/"> <div class="thumbnail-container animate-lazy size-1000 "><img width="75" height="75" src="https://refreak.ru/wp-content/themes/jnews/assets/img/jeg-empty.png" class="attachment-jnews-75x75 size-jnews-75x75 lazyload wp-post-image" alt="" data-src="https://refreak.ru/wp-content/uploads/2020/01/10647-75x75.jpg" data-sizes="auto" data-srcset="https://refreak.ru/wp-content/uploads/2020/01/10647-75x75.jpg 75w, https://refreak.ru/wp-content/uploads/2020/01/10647-150x150.jpg 150w" data-expand="700" /></div> </a> </div> <h3 class="post-title"> <a href="https://refreak.ru/wp_insert_category-funkciya-dlya-sozdaniya-i-redaktirovaniya-kategoriy-na-bloge/"> wp_insert_category — функция для создания и редактирования категорий на блоге </a> </h3> </div> <a href="#" class="jeg_popup_close"><i class="fa fa-close"></i></a> </section> </div><div class="jnews_comment_container"> <div id="respond" class="comment-respond"> <h3 id="reply-title" class="comment-reply-title">Добавить комментарий <small><a rel="nofollow" id="cancel-comment-reply-link" href="/single_cat_title-funkciya-dlya-vyvoda-nazvaniya-tekuschey-kategorii/#respond" style="display:none;">Отменить ответ</a></small></h3><form action="https://refreak.ru/wp-comments-post.php" method="post" id="commentform" class="comment-form"><p class="comment-notes"><span id="email-notes">Ваш адрес email не будет опубликован.</span> Обязательные поля помечены <span class="required">*</span></p><p class="comment-form-comment"><label for="comment">Комментарий</label> <textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required="required"></textarea></p><p class="comment-form-author"><label for="author">Имя <span class="required">*</span></label> <input id="author" name="author" type="text" value="" size="30" maxlength="245" required='required' /></p> <p class="comment-form-email"><label for="email">Email <span class="required">*</span></label> <input id="email" name="email" type="text" value="" size="30" maxlength="100" aria-describedby="email-notes" required='required' /></p> <p class="comment-form-url"><label for="url">Сайт</label> <input id="url" name="url" type="text" value="" size="30" maxlength="200" /></p> <p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes" /> <label for="wp-comment-cookies-consent">Сохранить моё имя, email и адрес сайта в этом браузере для последующих моих комментариев.</label></p> <p class="form-submit"><input name="submit" type="submit" id="submit" class="submit" value="Отправить комментарий" /> <input type='hidden' name='comment_post_ID' value='789' id='comment_post_ID' /> <input type='hidden' name='comment_parent' id='comment_parent' value='0' /> </p></form> </div><!-- #respond --> </div> </div> </div> <div class="jeg_sidebar jeg_sticky_sidebar col-md-4"> <div class="widget widget_jnews_module_block_21" id="jnews_module_block_21-1"><div class="jeg_postblock_21 jeg_postblock jeg_module_hook jeg_pagination_disable jeg_col_1o3 jnews_module_789_1_5f7070229c247 normal " data-unique="jnews_module_789_1_5f7070229c247"> <div class="jeg_block_heading jeg_block_heading_8 jeg_subcat_right"> <h3 class="jeg_block_title"><span>Recommended</span></h3> </div> <div class="jeg_block_container"> <div class="jeg_posts jeg_load_more_flag"> <article class="jeg_post jeg_pl_sm post-894 post type-post status-publish format-standard has-post-thumbnail hentry category-wordpress"> <div class="jeg_thumb"> <a href="https://refreak.ru/sql-zaprosy-neobhodimye-dlya-perenosa-sayta-na-wordpress-na-drugoy-domen/"><div class="thumbnail-container animate-lazy size-715 "><img width="120" height="86" src="https://refreak.ru/wp-content/themes/jnews/assets/img/jeg-empty.png" class="attachment-jnews-120x86 size-jnews-120x86 lazyload wp-post-image" alt="" data-src="https://refreak.ru/wp-content/uploads/2020/01/sql-zaprosy-neobhodimye-dlya-perenosa-sayta-na-wordpress-na-drugoy-domen-1-120x86.png" data-sizes="auto" data-srcset="https://refreak.ru/wp-content/uploads/2020/01/sql-zaprosy-neobhodimye-dlya-perenosa-sayta-na-wordpress-na-drugoy-domen-1-120x86.png 120w, https://refreak.ru/wp-content/uploads/2020/01/sql-zaprosy-neobhodimye-dlya-perenosa-sayta-na-wordpress-na-drugoy-domen-1-350x250.png 350w" data-expand="700" /></div></a> </div> <div class="jeg_postblock_content"> <h3 class="jeg_post_title"> <a href="https://refreak.ru/sql-zaprosy-neobhodimye-dlya-perenosa-sayta-na-wordpress-na-drugoy-domen/">SQL-запросы, необходимые для переноса сайта на WordPress на другой домен</a> </h3> <div class="jeg_post_meta"><div class="jeg_meta_date"><a href="https://refreak.ru/sql-zaprosy-neobhodimye-dlya-perenosa-sayta-na-wordpress-na-drugoy-domen/" ><i class="fa fa-clock-o"></i> 05.01.2020</a></div></div> </div> </article><article class="jeg_post jeg_pl_sm post-847 post type-post status-publish format-standard has-post-thumbnail hentry category-wordpress"> <div class="jeg_thumb"> <a href="https://refreak.ru/manipulyacii-s-loginom-administratora-v-kommentariyah/"><div class="thumbnail-container animate-lazy size-715 "><img width="120" height="86" src="https://refreak.ru/wp-content/themes/jnews/assets/img/jeg-empty.png" class="attachment-jnews-120x86 size-jnews-120x86 lazyload wp-post-image" alt="" data-src="https://refreak.ru/wp-content/uploads/2020/01/manipulyacii-s-loginom-administratora-v-kommentariyah-3-120x86.png" data-sizes="auto" data-srcset="https://refreak.ru/wp-content/uploads/2020/01/manipulyacii-s-loginom-administratora-v-kommentariyah-3-120x86.png 120w, https://refreak.ru/wp-content/uploads/2020/01/manipulyacii-s-loginom-administratora-v-kommentariyah-3-350x250.png 350w" data-expand="700" /></div></a> </div> <div class="jeg_postblock_content"> <h3 class="jeg_post_title"> <a href="https://refreak.ru/manipulyacii-s-loginom-administratora-v-kommentariyah/">Манипуляции с логином администратора в комментариях</a> </h3> <div class="jeg_post_meta"><div class="jeg_meta_date"><a href="https://refreak.ru/manipulyacii-s-loginom-administratora-v-kommentariyah/" ><i class="fa fa-clock-o"></i> 05.01.2020</a></div></div> </div> </article><article class="jeg_post jeg_pl_sm post-768 post type-post status-publish format-standard has-post-thumbnail hentry category-wordpress"> <div class="jeg_thumb"> <a href="https://refreak.ru/is_home-proveryaet-otobrazhaetsya-li-v-dannyy-moment-glavnaya-stranica-s-vyvodom-na-ney-poslednih-postov/"><div class="thumbnail-container animate-lazy size-715 "><img width="120" height="86" src="https://refreak.ru/wp-content/themes/jnews/assets/img/jeg-empty.png" class="attachment-jnews-120x86 size-jnews-120x86 lazyload wp-post-image" alt="" data-src="https://refreak.ru/wp-content/uploads/2020/01/10647-120x86.jpg" data-sizes="auto" data-srcset="https://refreak.ru/wp-content/uploads/2020/01/10647-120x86.jpg 120w, https://refreak.ru/wp-content/uploads/2020/01/10647-350x250.jpg 350w" data-expand="700" /></div></a> </div> <div class="jeg_postblock_content"> <h3 class="jeg_post_title"> <a href="https://refreak.ru/is_home-proveryaet-otobrazhaetsya-li-v-dannyy-moment-glavnaya-stranica-s-vyvodom-na-ney-poslednih-postov/">is_home() — проверяет, отображается ли в данный момент главная страница с выводом на ней последних постов</a> </h3> <div class="jeg_post_meta"><div class="jeg_meta_date"><a href="https://refreak.ru/is_home-proveryaet-otobrazhaetsya-li-v-dannyy-moment-glavnaya-stranica-s-vyvodom-na-ney-poslednih-postov/" ><i class="fa fa-clock-o"></i> 05.01.2020</a></div></div> </div> </article><article class="jeg_post jeg_pl_sm post-588 post type-post status-publish format-standard has-post-thumbnail hentry category-wordpress"> <div class="jeg_thumb"> <a href="https://refreak.ru/get_body_class-vozvraschaet-massiv-klassov-prednaznachennyh-dlya-tela-dokumenta/"><div class="thumbnail-container animate-lazy size-715 "><img width="120" height="86" src="https://refreak.ru/wp-content/themes/jnews/assets/img/jeg-empty.png" class="attachment-jnews-120x86 size-jnews-120x86 lazyload wp-post-image" alt="" data-src="https://refreak.ru/wp-content/uploads/2020/01/10647-120x86.jpg" data-sizes="auto" data-srcset="https://refreak.ru/wp-content/uploads/2020/01/10647-120x86.jpg 120w, https://refreak.ru/wp-content/uploads/2020/01/10647-350x250.jpg 350w" data-expand="700" /></div></a> </div> <div class="jeg_postblock_content"> <h3 class="jeg_post_title"> <a href="https://refreak.ru/get_body_class-vozvraschaet-massiv-klassov-prednaznachennyh-dlya-tela-dokumenta/">get_body_class() — возвращает массив классов, предназначенных для тела документа</a> </h3> <div class="jeg_post_meta"><div class="jeg_meta_date"><a href="https://refreak.ru/get_body_class-vozvraschaet-massiv-klassov-prednaznachennyh-dlya-tela-dokumenta/" ><i class="fa fa-clock-o"></i> 05.01.2020</a></div></div> </div> </article> </div> <div class='module-overlay'> <div class='preloader_type preloader_dot'> <div class="module-preloader jeg_preloader dot"> <span></span><span></span><span></span> </div> <div class="module-preloader jeg_preloader circle"> <div class="jnews_preloader_circle_outer"> <div class="jnews_preloader_circle_inner"></div> </div> </div> <div class="module-preloader jeg_preloader square"> <div class="jeg_square"><div class="jeg_square_inner"></div></div> </div> </div> </div> </div> <div class="jeg_block_navigation"> <div class='navigation_overlay'><div class='module-preloader jeg_preloader'><span></span><span></span><span></span></div></div> </div> <script>var jnews_module_789_1_5f7070229c247 = {"header_icon":"","first_title":"Recommended","second_title":"","url":"","header_type":"heading_8","header_background":"","header_secondary_background":"","header_text_color":"","header_line_color":"","header_accent_color":"","header_filter_category":"","header_filter_author":"","header_filter_tag":"","header_filter_text":"All","post_type":"post","content_type":"all","number_post":"4","post_offset":"0","unique_content":"disable","include_post":"","exclude_post":"","include_category":"","exclude_category":"","include_author":"","include_tag":"","exclude_tag":"","sort_by":"random","date_format":"default","date_format_custom":"Y\/m\/d","pagination_mode":"disable","pagination_nextprev_showtext":"","pagination_number_post":"6","pagination_scroll_limit":"0","boxed":"","boxed_shadow":"","el_id":"","el_class":"","scheme":"normal","column_width":"auto","title_color":"","accent_color":"","alt_color":"","excerpt_color":"","css":"","paged":1,"column_class":"jeg_col_1o3","class":"jnews_block_21"};</script> </div></div><div class="widget widget_jnews_module_element_ads" id="jnews_module_element_ads-1"><div class='jeg_ad jeg_ad_module jnews_module_789_2_5f7070229f84b '><div class='ads-wrapper'><a href='' target='_self' class='adlink ads_image '><img src='https://refreak.ru/wp-content/uploads/2020/01/ad_345x345.jpg' alt='' data-pin-no-hover="true"></a></div></div></div><div class="widget widget_categories" id="categories-3"><div class="jeg_block_heading jeg_block_heading_8 jnews_5f7070229fc46"><h3 class="jeg_block_title"><span>Категории</span></h3></div> <ul> <li class="cat-item cat-item-29"><a href="https://refreak.ru/category/bootstrap/">Bootstrap</a> </li> <li class="cat-item cat-item-27"><a href="https://refreak.ru/category/wordpress/">WordPress</a> </li> </ul> </div><div class="widget widget_jnews_instagram" id="jnews_instagram-1"><div class="jeg_block_heading jeg_block_heading_8 jnews_5f707022a03ff"><h3 class="jeg_block_title"><span>Instagram</span></h3></div><div class='jeg_instagram_widget jeg_grid_thumb_widget clearfix'> <ul class='instagram-pics col2 normal'> <li class='first'> <a href='//instagram.com/p/CAuW_Mbp9dY/' target='_blank'> <div class='thumbnail-container animate-lazy size-1000'><img class='lazyload' src='https://refreak.ru/wp-content/themes/jnews/assets/img/jeg-empty.png' data-expand='700' alt='SUBMIT YOUR DESIGN https www designbot work - Designed by Ahmed Hasan capable team carsive - Daily Inspiration in your feed - designbot ui dribbble ux design designlove uidesign userinterface minimal graphicdesignui inspiration interface appdesign digital graphicdesignuiweb app graphicdesign creative userexperience uxdesign designinspiration dribbblers uxigers dailyinspiration uitrends graphicdesignui designfeed' data-src='https://scontent-hel2-1.cdninstagram.com/v/t51.2885-15/sh0.08/e35/s640x640/101154100_365782777713441_2581954137230123102_n.jpg?_nc_ht=scontent-hel2-1.cdninstagram.com&_nc_cat=109&_nc_ohc=luZ2SyBfCRkAX8D0qL8&oh=60214d8a265853dcd3ec303e45f10873&oe=5ED283DA' title='SUBMIT YOUR DESIGN https www designbot work - Designed by Ahmed Hasan capable team carsive - Daily Inspiration in your feed - designbot ui dribbble ux design designlove uidesign userinterface minimal graphicdesignui inspiration interface appdesign digital graphicdesignuiweb app graphicdesign creative userexperience uxdesign designinspiration dribbblers uxigers dailyinspiration uitrends graphicdesignui designfeed'></div> </a> </li><li class='last'> <a href='//instagram.com/p/CAr5jJnphxS/' target='_blank'> <div class='thumbnail-container animate-lazy size-1000'><img class='lazyload' src='https://refreak.ru/wp-content/themes/jnews/assets/img/jeg-empty.png' data-expand='700' alt='Going Forward by Vedad Siljak Follow us Get Inspired design bot Get featured Tag your work with designbot designbot appdesign application creative dailyinspiration design designlove designinspiration digitaldesign dribbble graphic graphicdesign graphicdesignui inspiration interface minimal modern moderndesign trending ui uidesign uitrends uiux userexperience ux uxdesign uxigers webdesign website' data-src='https://scontent-hel2-1.cdninstagram.com/v/t51.2885-15/sh0.08/e35/s640x640/101439876_2603813563163984_8031697051679328357_n.jpg?_nc_ht=scontent-hel2-1.cdninstagram.com&_nc_cat=108&_nc_ohc=XXKJ5cdWYA0AX9qScwT&oh=b85c2ff3e21a23f041554ca50273b620&oe=5EF95B57' title='Going Forward by Vedad Siljak Follow us Get Inspired design bot Get featured Tag your work with designbot designbot appdesign application creative dailyinspiration design designlove designinspiration digitaldesign dribbble graphic graphicdesign graphicdesignui inspiration interface minimal modern moderndesign trending ui uidesign uitrends uiux userexperience ux uxdesign uxigers webdesign website'></div> </a> </li><li class='first'> <a href='//instagram.com/p/CApNOPNHGgK/' target='_blank'> <div class='thumbnail-container animate-lazy size-1000'><img class='lazyload' src='https://refreak.ru/wp-content/themes/jnews/assets/img/jeg-empty.png' data-expand='700' alt='by Nathan Bolger nb create Follow us design bot - Link https www instagram com p B-fPLgpll2O - More typography inspiration type bot - designbot design userinterface graphicdesign online animation mobile code website web site webdesign digital designinspiration digitaldesign webdesigner webdeveloper ui ux uiux dribbble behance application interface html css appdesign uidesign uxdesign interaction' data-src='https://scontent-hel2-1.cdninstagram.com/v/t51.2885-15/sh0.08/e35/s640x640/101001930_841140796409919_9180179003522302644_n.jpg?_nc_ht=scontent-hel2-1.cdninstagram.com&_nc_cat=103&_nc_ohc=J6lCLLMWEfgAX_aUPZe&oh=fa034161c14290aef8733dfdec7296fd&oe=5EF9AD26' title='by Nathan Bolger nb create Follow us design bot - Link https www instagram com p B-fPLgpll2O - More typography inspiration type bot - designbot design userinterface graphicdesign online animation mobile code website web site webdesign digital designinspiration digitaldesign webdesigner webdeveloper ui ux uiux dribbble behance application interface html css appdesign uidesign uxdesign interaction'></div> </a> </li><li class='last'> <a href='//instagram.com/p/CAnfbZFJz8c/' target='_blank'> <div class='thumbnail-container animate-lazy size-1000'><img class='lazyload' src='https://refreak.ru/wp-content/themes/jnews/assets/img/jeg-empty.png' data-expand='700' alt='Design by Mike Creative Mints Follow us Get Inspired design bot Get featured Tag your work with designbot designbot appdesign application creative dailyinspiration design designlove designinspiration digitaldesign dribbble graphic graphicdesign graphicdesignui inspiration interface minimal modern moderndesign trending ui uidesign uitrends uiux userexperience ux uxdesign uxigers webdesign website' data-src='https://scontent-hel2-1.cdninstagram.com/v/t51.2885-15/sh0.08/e35/s640x640/101010183_250679626024489_9190823236219730035_n.jpg?_nc_ht=scontent-hel2-1.cdninstagram.com&_nc_cat=101&_nc_ohc=vWXY936h22cAX-kEI5L&oh=cc777e42f3b645dd9e1aea4adff45b7b&oe=5EF8CBB9' title='Design by Mike Creative Mints Follow us Get Inspired design bot Get featured Tag your work with designbot designbot appdesign application creative dailyinspiration design designlove designinspiration digitaldesign dribbble graphic graphicdesign graphicdesignui inspiration interface minimal modern moderndesign trending ui uidesign uitrends uiux userexperience ux uxdesign uxigers webdesign website'></div> </a> </li><li class='first'> <a href='//instagram.com/p/CAfKRKoHRyI/' target='_blank'> <div class='thumbnail-container animate-lazy size-1000'><img class='lazyload' src='https://refreak.ru/wp-content/themes/jnews/assets/img/jeg-empty.png' data-expand='700' alt='by Anastasia Eletskaya ae designpro Follow us Get Inspired design bot Get featured Tag your work with designbot - designbot ui dribbble ux design designlove uidesign userinterface minimal graphicdesignui inspiration interface appdesign digital graphicdesignuiweb app graphicdesign creative userexperience uxdesign designinspiration dribbblers uxigers dailyinspiration uitrends graphicdesignui designfeed' data-src='https://scontent-hel2-1.cdninstagram.com/v/t51.2885-15/sh0.08/e35/s640x640/98504892_254130242360758_7620338775345887976_n.jpg?_nc_ht=scontent-hel2-1.cdninstagram.com&_nc_cat=110&_nc_ohc=gff_cNn9SNwAX-SOzEG&oh=e8372b54a3431f815f3cf9c39d080e1b&oe=5EF883C3' title='by Anastasia Eletskaya ae designpro Follow us Get Inspired design bot Get featured Tag your work with designbot - designbot ui dribbble ux design designlove uidesign userinterface minimal graphicdesignui inspiration interface appdesign digital graphicdesignuiweb app graphicdesign creative userexperience uxdesign designinspiration dribbblers uxigers dailyinspiration uitrends graphicdesignui designfeed'></div> </a> </li><li class='last'> <a href='//instagram.com/p/CAX-p9rpVer/' target='_blank'> <div class='thumbnail-container animate-lazy size-1000'><img class='lazyload' src='https://refreak.ru/wp-content/themes/jnews/assets/img/jeg-empty.png' data-expand='700' alt='SUBMIT YOUR DESIGN https www designbot work - Designed by dgladenko - Daily Inspiration in your feed - designbot appdesign application creative dailyinspiration design designlove designinspiration digitaldesign dribbble graphic graphicdesign graphicdesignui inspiration interface minimal modern moderndesign trending ui uidesign uitrends uiux userexperience ux uxdesign uxigers webdesign website' data-src='https://scontent-hel2-1.cdninstagram.com/v/t51.2885-15/sh0.08/e35/s640x640/98165516_261747761855418_4961966980007400525_n.jpg?_nc_ht=scontent-hel2-1.cdninstagram.com&_nc_cat=106&_nc_ohc=HTUa3q-R7GQAX_3eSiu&oh=89a63c0f171de6b88adc97c3de3d2c90&oe=5EF94E26' title='SUBMIT YOUR DESIGN https www designbot work - Designed by dgladenko - Daily Inspiration in your feed - designbot appdesign application creative dailyinspiration design designlove designinspiration digitaldesign dribbble graphic graphicdesign graphicdesignui inspiration interface minimal modern moderndesign trending ui uidesign uitrends uiux userexperience ux uxdesign uxigers webdesign website'></div> </a> </li> </ul> </div></div></div> </div> <div class="jeg_ad jeg_article jnews_article_bottom_ads"> <div class='ads-wrapper '></div> </div> </div> </div> </div> </div> <div id="post-body-class" class="post-template-default single single-post postid-789 single-format-standard wp-embed-responsive jeg_toggle_dark jeg_single_tpl_3 jnews jsc_normal wpb-js-composer js-comp-ver-6.0.5 vc_responsive"></div> </div> <div class="post-ajax-overlay"> <div class="preloader_type preloader_dot"> <div class="newsfeed_preloader jeg_preloader dot"> <span></span><span></span><span></span> </div> <div class="newsfeed_preloader jeg_preloader circle"> <div class="jnews_preloader_circle_outer"> <div class="jnews_preloader_circle_inner"></div> </div> </div> <div class="newsfeed_preloader jeg_preloader square"> <div class="jeg_square"><div class="jeg_square_inner"></div></div> </div> </div> </div> </div> <div class="footer-holder" id="footer" data-id="footer"> <div class="jeg_footer jeg_footer_custom"> <div class="jeg_container"> <div class="jeg_content"> <div class="jeg_vc_content"> <div class="row vc_row jnews_5f707023c4edc footer_light"><div class="jeg-vc-wrapper"><div class="wpb_column jeg_column vc_column_container vc_col-sm-12"><div class="jeg_wrapper wpb_wrapper"></div></div></div></div><div class="row vc_row vc_custom_1546501881850 jnews_5f707023c5c87 footer_light"><div class="jeg-vc-wrapper"><div class="col-sm-push-8 wpb_column jeg_column vc_column_container vc_col-sm-4 vc_custom_1546595162891"><div class="jeg_wrapper wpb_wrapper"></div></div><div class="col-sm-pull-4 wpb_column jeg_column vc_column_container vc_col-sm-8 vc_custom_1546595168943"><div class="jeg_wrapper wpb_wrapper"><h2 style="font-size: 16px;color: #141204;line-height: 1.2em;text-align: left;font-family:Open Sans;font-weight:600;font-style:normal" class="vc_custom_heading" >Информация</h2><p style="color: #7a7a7a;text-align: left;font-family:Open Sans;font-weight:400;font-style:normal" class="vc_custom_heading" >На данном сайте собрана информация об таких темах как WordPress, Telegram ботах.<br /> Если вы нашли свою статью, просьба связаться с нами через контактную форму</p></div></div></div></div><div class="row vc_row jnews_5f707023c7168 footer_light"><div class="jeg-vc-wrapper"><div class="wpb_column jeg_column vc_column_container vc_col-sm-12"><div class="jeg_wrapper wpb_wrapper"></div></div></div></div> </div> </div> </div> </div><!-- /.footer --> </div> <div class="jscroll-to-top"> <a href="#back-to-top" class="jscroll-to-top_link"><i class="fa fa-angle-up"></i></a> </div> </div> <!-- Mobile Navigation ============================================= --> <div id="jeg_off_canvas" class="normal"> <a href="#" class="jeg_menu_close"><i class="jegicon-cross"></i></a> <div class="jeg_bg_overlay"></div> <div class="jeg_mobile_wrapper"> <div class="nav_wrap"> <div class="item_main"> <!-- Search Form --> <div class="jeg_aside_item jeg_search_wrapper jeg_search_no_expand round"> <a href="#" class="jeg_search_toggle"><i class="fa fa-search"></i></a> <form action="https://refreak.ru/" method="get" class="jeg_search_form" target="_top"> <input name="s" class="jeg_search_input" placeholder="Search..." type="text" value="" autocomplete="off"> <button type="submit" class="jeg_search_button btn"><i class="fa fa-search"></i></button> </form> <!-- jeg_search_hide with_result no_result --> <div class="jeg_search_result jeg_search_hide with_result"> <div class="search-result-wrapper"> </div> <div class="search-link search-noresult"> No Result </div> <div class="search-link search-all-button"> <i class="fa fa-search"></i> View All Result </div> </div></div><div class="jeg_aside_item"> <ul class="jeg_mobile_menu"><li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-home menu-item-431"><a href="https://refreak.ru/">Главная</a></li> <li class="menu-item menu-item-type-taxonomy menu-item-object-category current-post-ancestor current-menu-parent current-post-parent menu-item-425"><a href="https://refreak.ru/category/wordpress/">WordPress</a></li> <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-432"><a href="https://refreak.ru/category/telegram/">Telegram</a></li> <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-1020"><a href="https://refreak.ru/category/bootstrap/">Bootstrap</a></li> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-430"><a href="https://refreak.ru/contatcts/">Контакты</a></li> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1013"><a href="https://refreak.ru/mapsite/">Карта сайта</a></li> </ul></div> </div> <div class="item_bottom"> <div class="jeg_aside_item socials_widget nobg"> <a href="http://facebook.com" target='_blank' class="jeg_facebook"><i class="fa fa-facebook"></i> </a><a href="http://twitter.com" target='_blank' class="jeg_twitter"><i class="fa fa-twitter"></i> </a><a href="#" target='_blank' class="jeg_vk"><i class="fa fa-vk"></i> </a><a href="http://pinterest.com" target='_blank' class="jeg_pinterest"><i class="fa fa-pinterest"></i> </a><a href="http://instagram.com/jegtheme" target='_blank' class="jeg_instagram"><i class="fa fa-instagram"></i> </a></div> </div> </div> </div> </div><script type="text/javascript">var jfla = ["view_counter"]</script><!-- Yandex.Metrika counter --> <script type="text/javascript" > (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(56898943, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true }); </script> <noscript><div><img src="https://mc.yandex.ru/watch/56898943" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <!-- /Yandex.Metrika counter --><div class="jeg_read_progress_wrapper"></div><link rel='stylesheet' id='vc_google_fonts_open_sans300300italicregularitalic600600italic700700italic800800italic-css' href='https://fonts.googleapis.com/css?family=Open+Sans%3A300%2C300italic%2Cregular%2Citalic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic&ver=6.0.5' type='text/css' media='all' /> <script type='text/javascript' src='https://refreak.ru/wp-content/plugins/aftparser/js/toc.min.js?ver=201504087'></script> <script type='text/javascript' src='https://refreak.ru/wp-content/plugins/aftparser/js/postprocessing.js?ver=1601204258'></script> <script type='text/javascript' src='https://refreak.ru/wp-content/plugins/wp-syntax/js/wp-syntax.js?ver=1.1'></script> <script type='text/javascript' src='https://refreak.ru/wp-includes/js/comment-reply.min.js?ver=5.3.4'></script> <script type='text/javascript'> var mejsL10n = {"language":"ru","strings":{"mejs.install-flash":"Flash player \u043f\u043b\u0430\u0433\u0438\u043d \u0431\u044b\u043b \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d \u0438\u043b\u0438 \u043d\u0435 \u0431\u044b\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0432 \u0432\u0430\u0448\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043f\u043b\u0430\u0433\u0438\u043d Flash player \u0438\u043b\u0438 \u0441\u043a\u0430\u0447\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441 https:\/\/get.adobe.com\/flashplayer\/","mejs.fullscreen-off":"\u0412\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e\u043b\u043d\u044b\u0439 \u044d\u043a\u0440\u0430\u043d","mejs.fullscreen-on":"\u041f\u043e\u043b\u043d\u044b\u0439 \u044d\u043a\u0440\u0430\u043d","mejs.download-video":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0432\u0438\u0434\u0435\u043e","mejs.fullscreen":"\u041d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d","mejs.time-jump-forward":["\u0412\u043f\u0435\u0440\u0451\u0434 \u043d\u0430 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0443","\u0412\u043f\u0435\u0440\u0435\u0434 \u043d\u0430 %1 \u0441\u0435\u043a\u0443\u043d\u0434"],"mejs.loop":"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c\/\u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0430\u0446\u0438\u043a\u043b\u0438\u0432\u0430\u043d\u0438\u0435","mejs.play":"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438","mejs.pause":"\u041f\u0430\u0443\u0437\u0430","mejs.close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c","mejs.time-slider":"\u0428\u043a\u0430\u043b\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438","mejs.time-help-text":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u0432\u043b\u0435\u0432\u043e\/\u0432\u043f\u0440\u0430\u0432\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0443; \u0432\u0432\u0435\u0440\u0445\/\u0432\u043d\u0438\u0437, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0434\u0435\u0441\u044f\u0442\u044c \u0441\u0435\u043a\u0443\u043d\u0434.","mejs.time-skip-back":["\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430\u0437\u0430\u0434 \u043d\u0430 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0443","\u041d\u0430\u0437\u0430\u0434 \u043d\u0430 %1 \u0441\u0435\u043a\u0443\u043d\u0434"],"mejs.captions-subtitles":"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b","mejs.captions-chapters":"\u0413\u043b\u0430\u0432\u044b","mejs.none":"\u041d\u0435\u0442","mejs.mute-toggle":"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c\/\u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a","mejs.volume-help-text":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u0432\u0432\u0435\u0440\u0445\/\u0432\u043d\u0438\u0437, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0438\u043b\u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c.","mejs.unmute":"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a","mejs.mute":"\u0411\u0435\u0437 \u0437\u0432\u0443\u043a\u0430","mejs.volume-slider":"\u0420\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440 \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438","mejs.video-player":"\u0412\u0438\u0434\u0435\u043e\u043f\u043b\u0435\u0435\u0440","mejs.audio-player":"\u0410\u0443\u0434\u0438\u043e\u043f\u043b\u0435\u0435\u0440","mejs.ad-skip":"\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u0443","mejs.ad-skip-info":["\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0443","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 %1 \u0441\u0435\u043a\u0443\u043d\u0434"],"mejs.source-chooser":"\u0412\u044b\u0431\u043e\u0440 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430","mejs.stop":"\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c","mejs.speed-rate":"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c","mejs.live-broadcast":"\u041f\u0440\u044f\u043c\u0430\u044f \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f","mejs.afrikaans":"\u0410\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u0438\u0439","mejs.albanian":"\u0410\u043b\u0431\u0430\u043d\u0441\u043a\u0438\u0439","mejs.arabic":"\u0410\u0440\u0430\u0431\u0441\u043a\u0438\u0439","mejs.belarusian":"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u0441\u043a\u0438\u0439","mejs.bulgarian":"\u0411\u043e\u043b\u0433\u0430\u0440\u0441\u043a\u0438\u0439","mejs.catalan":"\u041a\u0430\u0442\u0430\u043b\u043e\u043d\u0441\u043a\u0438\u0439","mejs.chinese":"\u041a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0439","mejs.chinese-simplified":"\u041a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0439 (\u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u044b\u0439)","mejs.chinese-traditional":"\u041a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0439 (\u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0439)","mejs.croatian":"\u0425\u043e\u0440\u0432\u0430\u0442\u0441\u043a\u0438\u0439","mejs.czech":"\u0427\u0435\u0448\u0441\u043a\u0438\u0439","mejs.danish":"\u0414\u0430\u0442\u0441\u043a\u0438\u0439","mejs.dutch":"\u041d\u0438\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u0441\u043a\u0438\u0439 (\u0433\u043e\u043b\u043b\u0430\u043d\u0434\u0441\u043a\u0438\u0439)","mejs.english":"\u0410\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439","mejs.estonian":"\u042d\u0441\u0442\u043e\u043d\u0441\u043a\u0438\u0439","mejs.filipino":"\u0424\u0438\u043b\u0438\u043f\u043f\u0438\u043d\u0441\u043a\u0438\u0439","mejs.finnish":"\u0424\u0438\u043d\u0441\u043a\u0438\u0439","mejs.french":"\u0424\u0440\u0430\u043d\u0446\u0443\u0437\u0441\u043a\u0438\u0439","mejs.galician":"\u0413\u0430\u043b\u0438\u0441\u0438\u0439\u0441\u043a\u0438\u0439","mejs.german":"\u041d\u0435\u043c\u0435\u0446\u043a\u0438\u0439","mejs.greek":"\u0413\u0440\u0435\u0447\u0435\u0441\u043a\u0438\u0439","mejs.haitian-creole":"\u0413\u0430\u0438\u0442\u044f\u043d\u0441\u043a\u0438\u0439 \u043a\u0440\u0435\u043e\u043b\u044c\u0441\u043a\u0438\u0439","mejs.hebrew":"\u0418\u0432\u0440\u0438\u0442","mejs.hindi":"\u0425\u0438\u043d\u0434\u0438","mejs.hungarian":"\u0412\u0435\u043d\u0433\u0435\u0440\u0441\u043a\u0438\u0439","mejs.icelandic":"\u0418\u0441\u043b\u0430\u043d\u0434\u0441\u043a\u0438\u0439","mejs.indonesian":"\u0418\u043d\u0434\u043e\u043d\u0435\u0437\u0438\u0439\u0441\u043a\u0438\u0439","mejs.irish":"\u0418\u0440\u043b\u0430\u043d\u0434\u0441\u043a\u0438\u0439","mejs.italian":"\u0418\u0442\u0430\u043b\u044c\u044f\u043d\u0441\u043a\u0438\u0439","mejs.japanese":"\u042f\u043f\u043e\u043d\u0441\u043a\u0438\u0439","mejs.korean":"\u041a\u043e\u0440\u0435\u0439\u0441\u043a\u0438\u0439","mejs.latvian":"\u041b\u0430\u0442\u0432\u0438\u0439\u0441\u043a\u0438\u0439","mejs.lithuanian":"\u041b\u0438\u0442\u043e\u0432\u0441\u043a\u0438\u0439","mejs.macedonian":"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438\u0439","mejs.malay":"\u041c\u0430\u043b\u0430\u0439\u0441\u043a\u0438\u0439","mejs.maltese":"\u041c\u0430\u043b\u044c\u0442\u0438\u0439\u0441\u043a\u0438\u0439","mejs.norwegian":"\u041d\u043e\u0440\u0432\u0435\u0436\u0441\u043a\u0438\u0439","mejs.persian":"\u041f\u0435\u0440\u0441\u0438\u0434\u0441\u043a\u0438\u0439","mejs.polish":"\u041f\u043e\u043b\u044c\u0441\u043a\u0438\u0439","mejs.portuguese":"\u041f\u043e\u0440\u0442\u0443\u0433\u0430\u043b\u044c\u0441\u043a\u0438\u0439","mejs.romanian":"\u0420\u0443\u043c\u044b\u043d\u0441\u043a\u0438\u0439","mejs.russian":"\u0420\u0443\u0441\u0441\u043a\u0438\u0439","mejs.serbian":"\u0421\u0435\u0440\u0431\u0441\u043a\u0438\u0439","mejs.slovak":"\u0421\u043b\u043e\u0432\u0430\u0446\u043a\u0438\u0439","mejs.slovenian":"\u0421\u043b\u043e\u0432\u0435\u043d\u0441\u043a\u0438\u0439","mejs.spanish":"\u0418\u0441\u043f\u0430\u043d\u0441\u043a\u0438\u0439","mejs.swahili":"\u0421\u0443\u0430\u0445\u0438\u043b\u0438","mejs.swedish":"\u0428\u0432\u0435\u0434\u0441\u043a\u0438\u0439","mejs.tagalog":"\u0422\u0430\u0433\u0430\u043b\u043e\u0433","mejs.thai":"\u0422\u0430\u0439\u0441\u043a\u0438\u0439","mejs.turkish":"\u0422\u0443\u0440\u0435\u0446\u043a\u0438\u0439","mejs.ukrainian":"\u0423\u043a\u0440\u0430\u0438\u043d\u0441\u043a\u0438\u0439","mejs.vietnamese":"\u0412\u044c\u0435\u0442\u043d\u0430\u043c\u0441\u043a\u0438\u0439","mejs.welsh":"\u0412\u0430\u043b\u043b\u0438\u0439\u0441\u043a\u0438\u0439","mejs.yiddish":"\u0418\u0434\u0438\u0448"}}; </script> <script type='text/javascript' src='https://refreak.ru/wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=4.2.13-9993131'></script> <script type='text/javascript' src='https://refreak.ru/wp-includes/js/mediaelement/mediaelement-migrate.min.js?ver=5.3.4'></script> <script type='text/javascript'> /* <![CDATA[ */ var _wpmejsSettings = {"pluginPath":"\/wp-includes\/js\/mediaelement\/","classPrefix":"mejs-","stretching":"responsive"}; /* ]]> */ </script> <script type='text/javascript' src='https://refreak.ru/wp-includes/js/mediaelement/wp-mediaelement.min.js?ver=5.3.4'></script> <script type='text/javascript' src='https://refreak.ru/wp-includes/js/hoverIntent.min.js?ver=1.8.1'></script> <script type='text/javascript' src='https://refreak.ru/wp-includes/js/imagesloaded.min.js?ver=3.2.0'></script> <script type='text/javascript'> /* <![CDATA[ */ var jnewsoption = {"popup_script":"magnific","single_gallery":"","ismobile":"","isie":"","sidefeed_ajax":"","lang":"ru_RU","module_prefix":"jnews_module_ajax_","live_search":"1","postid":"789","isblog":"1","admin_bar":"0","follow_video":"","follow_position":"top_right","rtl":"0","gif":"","site_slug":"\/","site_domain":"refreak.ru"}; /* ]]> */ </script> <script type='text/javascript' src='https://refreak.ru/wp-content/themes/jnews/assets/dist/frontend.min.js?ver=5.5.0'></script> <!--[if lt IE 9]> <script type='text/javascript' src='https://refreak.ru/wp-content/themes/jnews/assets/js/html5shiv.min.js?ver=5.5.0'></script> <![endif]--> <script type='text/javascript' src='https://refreak.ru/wp-includes/js/wp-embed.min.js?ver=5.3.4'></script> <script type='text/javascript' src='https://refreak.ru/wp-content/plugins/js_composer/assets/js/dist/js_composer_front.min.js?ver=6.0.5'></script> <div class="jeg_ad jnews_mobile_sticky_ads "></div><script type='application/ld+json'>{"@context":"http:\/\/schema.org","@type":"article","mainEntityOfPage":{"@type":"WebPage","@id":"https:\/\/refreak.ru\/single_cat_title-funkciya-dlya-vyvoda-nazvaniya-tekuschey-kategorii\/"},"dateCreated":"2020-01-05 00:55:58","datePublished":"2020-01-05 00:55:58","dateModified":"2020-01-04 21:55:58","url":"https:\/\/refreak.ru\/single_cat_title-funkciya-dlya-vyvoda-nazvaniya-tekuschey-kategorii\/","headline":"single_cat_title() \u2014 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438","name":"single_cat_title() \u2014 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438","articleBody":"\n\n\r\n<h1>single_cat_title() \u2014 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438<\/h1> \t\t \t\t<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u0445 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439, \u043c\u0435\u0442\u043e\u043a \u0438 \u0430\u0440\u0445\u0438\u0432\u0430\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0442\u0430\u043a\u0441\u043e\u043d\u043e\u043c\u0438\u0439, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432\u043d\u0435 \u0446\u0438\u043a\u043b\u0430.<\/p> <p>\u0422\u043e \u0435\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u044b\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0430\u0440\u0445\u0438\u0432\u0430 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439 \u2014 \u0442\u043e \u043e\u043d\u0430 \u0432\u044b\u0432\u0435\u0434\u0435\u0442\/\u0432\u0435\u0440\u043d\u0451\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438, \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0430\u0440\u0445\u0438\u0432\u0430 \u043c\u0435\u0442\u043e\u043a \u2014 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043c\u0435\u0442\u043a\u0438, \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0430\u0440\u0445\u0438\u0432\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0442\u0430\u043a\u0441\u043e\u043d\u043e\u043c\u0438\u0438 \u2014 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0442\u0430\u043a\u0441\u043e\u043d\u043e\u043c\u0438\u0438.<\/p> <p>\u0412\u044b\u0432\u0435\u0441\u0442\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0442\u0430\u043a\u0441\u043e\u043d\u043e\u043c\u0438\u0438 \u0432\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 single_term_title().<\/p> <p>\u041a\u0430\u043a \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0438\u043c\u044f \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0432\u043d\u0435 \u0446\u0438\u043a\u043b\u0430, \u0435\u0441\u043b\u0438 \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d <strong>\u0442\u043e\u043b\u044c\u043a\u043e ID?<\/strong> \u041b\u0435\u0433\u043a\u043e, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e get_category().<\/p> <p>\u0415\u0441\u043b\u0438 \u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0440\u0443\u0431\u0440\u0438\u043a \u0437\u0430\u043f\u0438\u0441\u0438, \u0442\u043e \u0432\u0430\u043c \u0432 \u043f\u043e\u043c\u043e\u0449\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 get_the_category() \u0438 the_category().<\/p> <div><div><pre class=\"php\">single_cat_title<span>(<\/span> <span>$prefix<\/span> = <span>''<\/span>, <span>$display<\/span> = <span>true<\/span> <span>)<\/span><\/pre><\/div><\/div> <dl> <dt><tt>$prefix<\/tt><\/dt> <dd>(<em>\u0441\u0442\u0440\u043e\u043a\u0430<\/em>) \u0442\u0435\u043a\u0441\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438,<\/dd> <dt><tt>$display<\/tt><\/dt> <dd>(<em>\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435<\/em>) \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0438\u043b\u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 (\u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u043c\u0435\u043d\u0430 \u0440\u0443\u0431\u0440\u0438\u043a\/\u043c\u0435\u0442\u043e\u043a \u0441\u0440\u0430\u0437\u0443 \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u2014 <code>true<\/code>. \u0415\u0441\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e <code>false<\/code>, \u0442\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>$display<\/code> \u0431\u0443\u0434\u0435\u0442 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f.<\/dd> <\/dl> <h3>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/h3> <div><div><pre class=\"php\"><p><span><?php<\/span> single_cat_title<span>(<\/span><span>'\u0412\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0435\u0441\u044c \u0432 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438: '<\/span><span>)<\/span>; <span>?><\/span><\/p><\/pre><\/div><\/div> <p>\u041d\u0435 \u043f\u043e\u043b\u0435\u043d\u044e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u2014 \u0432 \u0438\u0442\u043e\u0433\u0435 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c HTML-\u043a\u043e\u0434\u0435 (Ctrl + U) \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u043e\u0442 \u0447\u0442\u043e:<\/p> <div><\/div> <p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0438\u043c\u044f \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0431\u0435\u0437 \u0441\u0441\u044b\u043b\u043a\u0438.<\/p> <p>\u0412\u044b\u0432\u043e\u0434\u0438\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e:<\/p> <div><div><pre class=\"php\"><span>$current_category<\/span> = single_cat_title<span>(<\/span><span>''<\/span>, <span>false<\/span><span>)<\/span>; <span>echo<\/span> <span>\"<p>\u0412\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0435\u0441\u044c \u0432 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438: <span>$current_category<\/span><\/p>\"<\/span>;<\/pre><\/div><\/div> <p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0438 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435.<\/p> <div><\/div> <div><\/div> <div><\/div> <h2>\u0424\u0438\u043b\u044c\u0442\u0440\u044b single_cat_title, single_tag_title, single_term_title<\/h2> <p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f <code>single_cat_title()<\/code> \u0431\u044b\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0440\u0443\u0431\u0440\u0438\u043a\u0438, \u043a \u0432\u044b\u0432\u043e\u0434\u0438\u043c\u043e\u043c\u0443 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440:<\/p> <div><div><pre class=\"php\"><span>$term_name<\/span> = apply_filters<span>(<\/span> <span>'single_cat_title'<\/span>, <span>$term<\/span>-><span>name<\/span> <span>)<\/span>;<\/pre><\/div><\/div> <p>\u0415\u0441\u043b\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043c\u0435\u0442\u043a\u0438:<\/p> <div><div><pre class=\"php\"><span>$term_name<\/span> = apply_filters<span>(<\/span> <span>'single_tag_title'<\/span>, <span>$term<\/span>-><span>name<\/span> <span>)<\/span>;<\/pre><\/div><\/div> <p>\u0414\u043b\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0442\u0430\u043a\u0441\u043e\u043d\u043e\u043c\u0438\u0439:<\/p> <div><div><pre class=\"php\"><span>$term_name<\/span> = apply_filters<span>(<\/span> <span>'single_term_title'<\/span>, <span>$term<\/span>-><span>name<\/span> <span>)<\/span>;<\/pre><\/div><\/div> <p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u043c\u0438 \u0442\u0435\u0433\u0430\u043c\u0438 is_category(), is_tag() \u0438 is_tax().<\/p> <dl> <dt><tt>$term->name<\/tt><\/dt> <dd>(\u0441\u0442\u0440\u043e\u043a\u0430) \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0440\u0443\u0431\u0440\u0438\u043a\u0438 \/ \u043c\u0435\u0442\u043a\u0438 \u0438\u043b\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0442\u0430\u043a\u0441\u043e\u043d\u043e\u043c\u0438\u0438.<\/dd> <\/dl> <p>\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u2014 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0434\u043b\u044f \u0440\u0443\u0431\u0440\u0438\u043a\u0438 \u0441 ID = 5 \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441 HTML-\u043a\u043b\u0430\u0441\u0441\u043e\u043c <code>cat5<\/code>, \u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439 \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a <code><h1><\/code>, \u0432 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c:<\/p> <div><div><pre class=\"php\"><span>function<\/span> true_cat5_with_class<span>(<\/span> <span>$cat_name<\/span> <span>)<\/span><span>{<\/span> \t<span>if<\/span><span>(<\/span> is_category<span>(<\/span> <span>5<\/span> <span>)<\/span> <span>)<\/span> <span>{<\/span> \t\t<span>return<\/span> <span>'<h1 class=\"cat5\">'<\/span> . <span>$cat_name<\/span> . <span>'<\/h1>'<\/span>; \t<span>}<\/span> <span>else<\/span> <span>{<\/span> \t\t<span>return<\/span> <span>'<h1>'<\/span> . <span>$cat_name<\/span> . <span>'<\/h1>'<\/span>; \t<span>}<\/span> <span>}<\/span> \u00a0 <span>add_filter<\/span><span>(<\/span><span>'single_cat_title'<\/span>, <span>'true_cat5_with_class'<\/span>, <span>10<\/span>, <span>1<\/span><span>)<\/span>;<\/pre><\/div><\/div> <p>\u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u0431\u0443\u0434\u0435\u0442\u0435 \u0447\u0442\u043e-\u0442\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0444\u0438\u043b\u044c\u0442\u0440\u044b, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e <code>single_cat_title()<\/code> \u043c\u043e\u0436\u0435\u0442 \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u0441\u0430\u0439\u0442\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0442\u0435\u0433\u0430 <code><title><\/code>.<\/p> <h2>\u0424\u0443\u043d\u043a\u0446\u0438\u044f single_term_title()<\/h2> <p>\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 WordPress 3.1, \u0444\u0443\u043d\u043a\u0446\u0438\u044f <code>single_cat_title()<\/code> \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 single_term_title(), \u043f\u0440\u0438\u0447\u0435\u043c \u043e\u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043a\u0430\u043a \u0435\u0441\u0442\u044c, \u0431\u0435\u0437 \u043a\u0430\u043a\u0438\u0445-\u043b\u0438\u0431\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0441 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438. \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u0432\u0437\u044f\u0442 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u0434\u0432\u0438\u0436\u043a\u0430 WordPress <code>general-template.php<\/code>:<\/p> <div><div><pre class=\"php\"><span>function<\/span> single_cat_title<span>(<\/span> <span>$prefix<\/span> = <span>''<\/span>, <span>$display<\/span> = <span>true<\/span> <span>)<\/span> <span>{<\/span> \t<span>return<\/span> single_term_title<span>(<\/span> <span>$prefix<\/span>, <span>$display<\/span> <span>)<\/span>; <span>}<\/span><\/pre><\/div><\/div> <p>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 <code>$prefix<\/code> \u0438 <code>$display<\/code> \u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 single_term_title() \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u0438\u0435 \u0436\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435, \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0439 \u043c\u0435\u0442\u043e\u043a \u0438 \u0440\u0443\u0431\u0440\u0438\u043a \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0451 \u2014 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0440\u0430\u0437\u043d\u0438\u0446\u044b \u043d\u0435\u0442, \u0440\u0430\u0437\u0432\u0435 \u0447\u0442\u043e \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u043a\u0430\u043a\u0438\u0435-\u043d\u0438\u0431\u0443\u0434\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 WordPress.<\/p>","author":{"@type":"Person","name":"refreak","url":"https:\/\/refreak.ru\/author\/refreak\/"},"articleSection":["WordPress"],"image":{"@type":"ImageObject","url":"https:\/\/refreak.ru\/wp-content\/uploads\/2020\/01\/10647.jpg","width":550,"height":269},"publisher":{"@type":"Organization","name":"","url":"https:\/\/refreak.ru","logo":{"@type":"ImageObject","url":""},"sameAs":["http:\/\/facebook.com","http:\/\/twitter.com","#","http:\/\/pinterest.com","http:\/\/instagram.com\/jegtheme"]}}</script> <script type='application/ld+json'>{"@context":"http:\/\/schema.org","@type":"hentry","entry-title":"single_cat_title() \u2014 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438","published":"2020-01-05 00:55:58","updated":"2020-01-04 21:55:58"}</script> </body> </html>