Seo için hangi eklentiyi kullanıyorsunuz? All in seo, yoast ve rank math içinde bu özellik var. Hic birini kullanmıyorsanız functions.php içine aşağıdaki kodu ekleyin.

Alıntı:
function fix_slash( $string, $type )
{
global $wp_rewrite;
if ( $wp_rewrite->use_trailing_slashes == false )
{
if ( $type != 'single' && $type != 'category' )
return trailingslashit( $string );

if ( $type == 'single' && ( strpos( $string, '.html/' ) !== false ) )
return trailingslashit( $string );

if ( $type == 'category' && ( strpos( $string, 'category' ) !== false ) )
{
$aa_g = str_replace( "/category/", "/", $string );
return trailingslashit( $aa_g );
}
if ( $type == 'category' )
return trailingslashit( $string );
}
return $string;
}

add_filter( 'user_trailingslashit', 'fix_slash', 55, 2 );
Share Improve this answer Follow


Bu kodu ekleyince ne admin paneli açıyor ne de kategoriler açılıyor.