admin管理员组文章数量:1313076
I would like a script that changes the final number I have in my slug by +1, for example if my link is https://site. com/permalink-1 number 1 must become 2, so I would like to insert a list of posts to change the permalink like that:
$old_url = array(
'http://localhost:8888/site/permalink-1/',
'http://localhost:8888/site/permalink-1/',
'http://localhost:8888/site/permalink-5/',
'http://localhost:8888/site/permalink-37/',
);
then he has to give me this as a result:
$new_url = array(
'http://localhost:8888/site/permalink-2/',
'http://localhost:8888/site/permalink-2/',
'http://localhost:8888/site/permalink-6/',
'http://localhost:8888/site/permalink-38/',
);
once the permalink has changed it should automatically update the post permalinks. i'm not that good at php code, could you help me? thanks :)
本文标签: permalinksphp script to change slug in post automatically
版权声明:本文标题:permalinks - php script to change slug in post automatically 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741927757a2405390.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论