SO网友:Mohamed H. Hegazy
将permalink设置为(帖子名称)
或
http://www.example.com/[blog_name]`/%post_id%/%postname%/`
将以下代码添加到
functions.php
您的主题:
add_filter ( \'alias_rule\', \'xili_language_trans_slug_qv\' ) ;
function xl_permalinks_init () {
global $XL_Permalinks_rules;
if (class_exists(\'XL_Permalinks_rules\') ) {
$XL_Permalinks_rules = new XL_Permalinks_rules ();
add_permastruct ( \'language\', \'%lang%\', true, 1 );
add_permastruct ( \'language\', \'%lang%\', array(\'with_front\' => false) );
}
}