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
Add a comment  | 

1 Answer 1

Reset to default 0

Try the following:

  1. Right click on this link and save the XML full of dummy content provided by WordPress
  2. In the sample data, you can remove the unwanted data such as pages, comments, categories, etc.
  3. Go to Tools > Import in the admin panel
  4. Install the "WordPress" importer from the list
  5. Activate & Run Importer
  6. Upload the XML file
  7. Map the authors in this export file to users of your choosing
  8. 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