diff --git a/category.php b/category.php index 6442fd7..869a4d9 100644 --- a/category.php +++ b/category.php @@ -6,12 +6,18 @@ * @version 1.0.0 */ - get_header(); - $postType = get_post_type(); - global $wp_query; $tax_slug = $wp_query->get_queried_object(); $isNoSideBar = 'online-bsss' === $tax_slug->slug; +$lang = get_query_var('lang', ''); +if ($tax_slug->slug === 'online-bsss' && $lang === 'ja') { + $url = site_url('/online-bsss'); + wp_safe_redirect($url, 301); + exit; +} + +get_header(); +$postType = get_post_type(); if ( !$postType ) { global $wp_query;