redirect to english page at online-bsss category.
This commit is contained in:
parent
3df4af32a5
commit
529d07ee38
12
category.php
12
category.php
@ -6,12 +6,18 @@
|
|||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
get_header();
|
|
||||||
$postType = get_post_type();
|
|
||||||
|
|
||||||
global $wp_query;
|
global $wp_query;
|
||||||
$tax_slug = $wp_query->get_queried_object();
|
$tax_slug = $wp_query->get_queried_object();
|
||||||
$isNoSideBar = 'online-bsss' === $tax_slug->slug;
|
$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 ) {
|
if ( !$postType ) {
|
||||||
global $wp_query;
|
global $wp_query;
|
||||||
|
Loading…
Reference in New Issue
Block a user