Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.