admin管理员组文章数量:1279182
I want to redirect the existing posts (nearly 2000) to a custom post type (say news) without interrupting newly created normal posts say (apps) after that, would that be possible?
I want to redirect the existing posts (nearly 2000) to a custom post type (say news) without interrupting newly created normal posts say (apps) after that, would that be possible?
Share Improve this question asked Oct 4, 2021 at 14:03 Aman RawatAman Rawat 52 bronze badges1 Answer
Reset to default 0create a way to check the post date, and make a if statment
if( $date_of_post < '2021-10-08') {
header('Location:https://google');
die();
}
本文标签: Redirect Existing Post to CPT
版权声明:本文标题:Redirect Existing Post to CPT 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741281731a2370047.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论