admin管理员组文章数量:1130349
I want to remove custom post type slug from URL and for this I have used this solution Removing slug from custom post type URL
It is working fine but I also want to add category with custom post type name but when I tried to add category slug then it started to redirect to 404 page. I have added category to URL using Custom Post Type Permalinks plugin.
When I remove the code that I have added for removal of post type slug then category base URL also works but both these things are not working together.
For this I have tried many solutions and at the end I got same result.
So for my website
example/postype/category/postname works
example/postname also works
but
example/category/postname redirects to 404 page. I update permalinks as well but nothing is working in this case. I will really appreciate your help.
I want to remove custom post type slug from URL and for this I have used this solution Removing slug from custom post type URL
It is working fine but I also want to add category with custom post type name but when I tried to add category slug then it started to redirect to 404 page. I have added category to URL using Custom Post Type Permalinks plugin.
When I remove the code that I have added for removal of post type slug then category base URL also works but both these things are not working together.
For this I have tried many solutions and at the end I got same result.
So for my website
example/postype/category/postname works
example/postname also works
but
example/category/postname redirects to 404 page. I update permalinks as well but nothing is working in this case. I will really appreciate your help.
本文标签: Removing custom post type slug from URL
版权声明:本文标题:Removing custom post type slug from URL 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749047815a2308142.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论