get_queried_object();
$post = get_page_by_path('category-'.esc_html($tax_slug->slug));
if ($post) {
?>
@@ -124,12 +127,14 @@ if ( !$postType ) {
+
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 ) {