我有一个自定义分类法(在自定义插件中),其中我包含了参数“ep\\u mask”=>“ep\\u CATEGORIES”用于重写(这使用WDS“taxonomy\\u Core”):
\'args\' => array(
\'hierarchical\' => false,
\'show_admin_column\' => false,
\'rewrite\' => array(
\'slug\' => \'sermon-series\',
\'with_front\' => false,
\'ep_mask\' => \'EP_CATEGORIES\',
),
然后我在我的主题的功能。php文件创建重写端点的以下指令:function lqd_app_view_rewrite_endpoint() {
add_rewrite_endpoint( \'app-view\', EP_ALL);
}
add_action( \'init\', \'lqd_app_view_rewrite_endpoint\' );
当我观看时,说:https://liquidchurch.com/messages/app-view/
这非常有效。但是,当我尝试在自定义分类法上使用它时,会出现一个页面未找到错误:https://liquidchurch.com/sermon-series/divine-direction/app-view/
有没有想过我做错了什么?谢谢