模板分类法 - slug.php 迁移后未加载

Template taxonomy-slug.php after migration doesnt load

迁移后我的模板 taxonomy-taxonomy-slug.php 不起作用。 Wordpress 加载另一个文件。也许只是 taxonomy.php.

这里很多人说我必须再次刷新永久链接,但对我来说它不起作用。

.htaccess 文件正确。问题一定出在服务器端。

人们说我的提供商必须将 Apache 配置更改为 AllowOverride All。

他们的回答是:

Thank you for contacting us. You can not do this. This would allow all types of directives in the .htaccess file and we can only allow some.

此目录允许更改:FileInfo、Indexes、Options=Indexes 和 AuthConfig。

我可以用这个指令做些什么吗?

再来一次。 Wordpress 不显示一些错误消息。它只是加载另一个 php 文件。也许问题出在其他地方?

好的。我解决了我的问题。

我有两种分类法。一个在 function.php 中注册,另一个在插件中注册。 我删除了 function.php 中的分类法并在插件中重新创建。现在一切正常。