From 993312fc3a7c0ff80cfb35a69c5d31929be9f4a9 Mon Sep 17 00:00:00 2001 From: NIU Administrator Date: Fri, 15 Jan 2021 12:24:59 +0900 Subject: [PATCH] set no sidebar for category online-bsss. --- category.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/category.php b/category.php index 9b9b2e8..6442fd7 100644 --- a/category.php +++ b/category.php @@ -9,6 +9,10 @@ get_header(); $postType = get_post_type(); +global $wp_query; +$tax_slug = $wp_query->get_queried_object(); +$isNoSideBar = 'online-bsss' === $tax_slug->slug; + if ( !$postType ) { global $wp_query; if ($wp_query->query_vars['post_type']) { @@ -18,7 +22,7 @@ if ( !$postType ) {
-
+
get_queried_object(); $post = get_page_by_path('category-'.esc_html($tax_slug->slug)); if ($post) { ?> @@ -124,12 +127,14 @@ if ( !$postType ) {
+
+