代码解决办法:
register_taxonomy( 'travel-category', //taxonomy base 'destination', // custom post type 'rewrite' => array( 'slug' => '/', 'with_front' => FALSE ) );
如果出现404,在 设置
– 固定链接
中重新保存即可。
本文作者为鲍成龙,转载请注明。
代码解决办法:
register_taxonomy( 'travel-category', //taxonomy base 'destination', // custom post type 'rewrite' => array( 'slug' => '/', 'with_front' => FALSE ) );
如果出现404,在 设置
– 固定链接
中重新保存即可。
本文作者为鲍成龙,转载请注明。