我想要
example.com/post-name
-> 使用模板1。phpexample.com/post-name/details
-> 使用模板2。php我发现this discussion, 所以我在我的主题中实现了代码
functions.php
. 我也对以前的答复进行了更改,但我收到了此错误警告:call\\u user\\u func\\u array()要求参数1为有效回调,在/public\\u html/wp includes/plugin中找不到函数“detail\\u rewrite\\u rules”,或函数名无效。php在线173
我没有编辑
plugin.php
第173行是:
我希望有人能帮助我,这似乎是一项相当容易的工作,但我可能错了。$value = call_user_func_array($the_[\'function\'], array_slice($args, 1, (int) $the_[\'accepted_args\']));