admin管理员组文章数量:1122846
I'm looking for a way to automatically add a large number of example posts to a WordPress blog for testing purposes.
I have the requirement to test a bulk process on 15,000 English blog posts (one or two paragraphs of text and nonsensical titles will do). As you can imagine, getting this volume of test content populated isn't something one would like to do by hand!
I'm looking for a way to automatically add a large number of example posts to a WordPress blog for testing purposes.
I have the requirement to test a bulk process on 15,000 English blog posts (one or two paragraphs of text and nonsensical titles will do). As you can imagine, getting this volume of test content populated isn't something one would like to do by hand!
Share Improve this question edited Sep 19, 2016 at 22:32 fuxia♦ 107k38 gold badges255 silver badges459 bronze badges asked Sep 14, 2016 at 12:07 player.mdlplayer.mdl 1656 bronze badges 3- Would all the data have to be different, such as some containing media, some containing lists etc? Also, please edit your post to show what you have tried, and whether it has been successful. – EBennett Commented Sep 14, 2016 at 12:14
- Actually I only need a paragraph or two worth of English sentences in each. Could be random, could be the same. – player.mdl Commented Sep 14, 2016 at 12:27
- I would reckon that a PHP FOR or WHILE loop with a connection to the post DB of Wordpress would achieve this. So you would increment the loop, and every time it goes up one, insert a random sentence of your choosing into the DB. – EBennett Commented Sep 14, 2016 at 12:41
1 Answer
Reset to default 0Try the following:
- Right click on this link and save the XML full of dummy content provided by WordPress
- In the sample data, you can remove the unwanted data such as pages, comments, categories, etc.
- Go to Tools > Import in the admin panel
- Install the "WordPress" importer from the list
- Activate & Run Importer
- Upload the XML file
- Map the authors in this export file to users of your choosing
- WordPress will then import each of the posts
If this doesn't satisfy, I'd recommend looking into plugins that generate dummy content to your expectations
本文标签: How to bulk add vast amounts of posts
版权声明:本文标题:How to bulk add vast amounts of posts 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736290363a1928497.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论