admin管理员组文章数量:1391995
not sure if this is the correct place to ask, but I'm scratching my head at this.
We're making a demo wordpress site with a forum, and because the old site has a locked down forum, we can't export any of the topics and replies. Totally inefficient but the client wants it.
So we're creating all kinds of new topic and replies and backdating them to the previous year. We want the forum to display topics based on PUBLISHED date and not the date updated.
Example: topic is dated September 12 2018. I cut and paste it into the demo WP site yesterday, March 4 2019. Clicking on the forum topic I see the correct published date of Sept 12 2018. But when I view the list of topics in the forum, I see this topic on the first page because it's considered to be new even though the published date is older than many other topics and replies.
What can I do? Any help much appreciated.
not sure if this is the correct place to ask, but I'm scratching my head at this.
We're making a demo wordpress site with a forum, and because the old site has a locked down forum, we can't export any of the topics and replies. Totally inefficient but the client wants it.
So we're creating all kinds of new topic and replies and backdating them to the previous year. We want the forum to display topics based on PUBLISHED date and not the date updated.
Example: topic is dated September 12 2018. I cut and paste it into the demo WP site yesterday, March 4 2019. Clicking on the forum topic I see the correct published date of Sept 12 2018. But when I view the list of topics in the forum, I see this topic on the first page because it's considered to be new even though the published date is older than many other topics and replies.
What can I do? Any help much appreciated.
Share Improve this question asked Mar 5, 2019 at 21:37 Torque2Torque2 411 silver badge5 bronze badges1 Answer
Reset to default 0You'd need to write a bit of Python (or something) to connect to the live database, read the import data, match to the WP topic, then update the "date created" field (whatever that is exactly... "post publish date" ?) in WP and update it with the value you want from the loaded data.
If you look in the live WP database and find the post ID of the first post of your loaded data you can match each post sequentially in order to update it.
本文标签: date timeIncorrect display of bbpress forum topics amp replies
版权声明:本文标题:date time - Incorrect display of bbpress forum topics & replies 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744762027a2623809.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论