WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a site structure that I want to create a bunch of empty pages - each with a particular parent page and template. Is there a faster way to do this than one-by-one? A plugin perhaps?

share|improve this question

Direct injection in to the DB. Have a look at the codex for $wpdb. I'd suggest putting a line of code in to a for() loop so that you can run it as many times as you want.

<?php $wpdb->insert( $table, $data, $format ); ?>
share|improve this answer
Good, but I'd like to see a better solution. A plugin perhaps? – DMA Nov 10 '11 at 22:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.