Thursday, September 16th, 2010 | Geek Out Lab, Plugins, WordPress

WordPress Plugin to Insert Multiple Pages / Posts at once: Quick Posts

Quick Posts is Fixed! Download the newest version.

Quick Post enables a WordPress user to quickly add multiple posts or pages at once. Version 1.3 has the following features:

  • Specify whether content to be added is a post or a page
  • If Pages are added, user can specify Parent Pages (to add children)
  • User can choose a page template from a drop down
  • User can specify the Author of new pages
  • User can specify post status (Published / Draft / Pending Review)
  • User can add as many posts/pages as they choose by clicking “add more”
  • User can choose a category from a drop down
  • User can add tags to individual posts

So, if this plug-in sound like it might help you, download it.

A little more detail:

This plugin uses the WordPress function wp_insert_posts() to add multiple posts at once. I wrote a blog post awhile ago on this same topic, using a PHP file that you would manually execute by navigating to it in your browser, but this way is much easier / faster / more flexible.

Use this plugin if you are:

  • Quickly inserting multiple posts whose content you already have written
  • Framing out a new site with desired pages and sub-pages
  • Inserting multiple posts to be edited later (with Post Status option)

Plugin now in WordPress plugin repository.

I’ve updated the links here to go to the WordPress plugin repository, which is where I will be updating it. You can add this plugin in your WordPress backend, although for the first few days “Quick Posts” won’t bring up the plugin, so you can search my handle: jhinson as an author.

Discussion

  1. September 17, 2010

    Richard says:

    Yes, just what I wanted! The “Mass page creator” plugin (or something along those lines) wasn’t working for me. I’ll give this a try and let you know how it goes! I have something like 200 pages that I want to create.. a chore using the regular interface!

  2. October 19, 2010

    Pipes Tutorial says:

    Hey, awesome plugin! Just one question… how do I select a different template to use? I’m using the Twenty-ten theme and want to use the “one column, no sidebar” template.

    Any help would be appreciated. Thanks!

  3. October 19, 2010

    Joseph says:

    The plugin currently doesn’t support page templates in creating new pages, perhaps that’s a good version 2.0 addition. Thanks for the heads up, I was wondering what more features I could add.

  4. October 23, 2010

    John says:

    Hi Joseph – i think this could be a very useful plugin for me – however, does it have the ability to add variables to the content – what i need to do is mass produce PAGE pages which all have the same content except for certain variables like Location, State, City, country, population etc. I would like a way of inputting these variables automatically – otherwise i would still need to manually edit all my pages, which would be a chore.

  5. October 23, 2010

    Joseph says:

    John,

    This plugin doesn’t support that, although it might be worthwhile to add it in a future version. What I would suggest for your needs is to use a variation of the script from this post and use WordPress’ update_post_meta() function to add your custom fields. You could create an array of the various values for dates have the script loop through that array.

    Hope that helps.

  6. December 17, 2010

    Mark says:

    Hey,
    This is good plugin and wanted to ask if there is a way to add support for media upload button and tags for the plugin?

  7. December 17, 2010

    Joseph says:

    Mark,

    I do plan to add more support. In the next version, I’d like to add the ability to have page templates, categories, and tags. I don’t plan on adding image upload support at the moment. I’m a front-end developer, so I can get over my head pretty quickly if I don’t watch it. This plugin is something I created (with the help of a friend) to scratch an itch. Before this I just used a PHP file and to loop through an array, until I realized that other people might find this useful. Glad you like it.

  8. December 17, 2010

    Mark says:

    Hi Joseph,
    Sounds pretty good even without image upload, hope the next version comes soon = )
    Thank you.

  9. May 2, 2011

    kyle says:

    hello, great little plugin.

    I wanted to give all authors the option to use it, but i don’t allow all authors to see the settings menu. That meant for me, moving the item from settings up to posts, which seemed like the right place for my uses.

    It actually placed the settings menu back on all of their pages, the only option being quick posts though.

    after a bit of reading, i made a small change to the code:

    on line 33, i changed this:
    add_options_page(‘Add quick Post(s) …
    to this add_submenu_page(‘edit.php’,'Add quick Post(s) …

    obviously the “…” were not included, i just caught off as i only added ‘edit.php’, but i wanted to show where the change was.

    hope that’s alright with you, i changed nothing else about it in my installation.

    thanks!
    kyle

  10. July 16, 2011

    Ben says:

    Hey buddy, I’ve used this on a site which is live and it works great! Thank you so much – this is a feature that should be a part of WP’s core imho.

    Now I’m trying to build a dev site on localhost and I’m getting an error from your plugin. On the dashboard under Settings > Quick Posts I get this error:

    Parse error: syntax error, unexpected ‘}’ in C:\wamp\www\wordpress\wp-content\plugins\quick-posts\templates\add-quick-post.php on line 96
    Call Stack
    # Time Memory Function Location
    1 0.0038 836200 {main}( ) ..\options-general.php:0
    2 0.0060 955808 require_once( ‘C:\wamp\www\wordpress\wp-admin\admin.php’ ) ..\options-general.php:10
    3 0.8936 37505600 do_action( ) ..\admin.php:151
    4 0.8937 37507088 call_user_func_array ( ) ..\plugin.php:405
    5 0.8937 37507120 QuickPosts->display_form( ) ..\plugin.php:0

    Not sure if this comment systems will display this right, but I think you get the idea either way. Please drop me a line if you can shed some light on this. I’m happy to provide a donation for your assistance.

    Thanks!
    Ben

  11. July 23, 2011

    Joseph says:

    I’m afraid I’m of very little help to you here. All I can say is that i know the plugin works in every instance I’ve tried. This seems like somthing specific to your wamp installation. I know it works locally on MAMP too.

  12. July 23, 2011

    Joseph says:

    Feel free to make any change to your local copy, though just a heads up, if you update, it will overwrite your changes. The change you made is a good one. I thought about it being a submenu item under posts, but because of the way I use it, I felt leaving it as a “Settings” option was the most general location. — remember your change, ’cause I’m going to be updating the plugin soon.

  13. July 26, 2011

    Sarah Peterson says:

    Hello Joseph
    Now I use your plug-in with my site it’s very prefectly plugin. But could you please add post date stamp function for plug-in ? Now my problem is move old post from another site to new site after add all post by your plug-in all post date is current date and I want to change it.

    ps. I have 5000 post , It’s make me can not add one by one.

    have some recommend ?

  14. October 9, 2011

    Brent says:

    Joseph,

    Great site and great looking plugin.

    Question for you: I’m using the XML route to create multiple pages at once with WordPress – and I’m curious, do you know a route to use XML do update the pages in mass also?

    Thanks,

    Brent

  15. October 17, 2011

    Joseph says:

    That’s a good question. I’ve never used the XML route before. Do you mean like using a customized WordPress import file?

  16. October 29, 2011

    Ricardo Braz says:

    Hey Joseph,

    I’ve some suggestions.
    1. It would be great if your plugin also supports Excerpts.
    2. It would be amazing if you made an “Advanced Tab”, where users could create your pages/posts in only one form. I explain:
    – A text-area where users could type the title of pages (in a list, per line). With that list, the plugin could “count” how many pages/post would be created;
    – Then, the content, excerpts, and tags would be the same for all pages/posts created.
    – These things would be great if a user need to create too many pages/posts, but don’t worry about their content.

    For example, at this moment i need to create about 25 pages and 70/80 posts. Their contents, excerpts and tags may be the same. With your plugin i must to add all these forms. With my idea there are 2 forms (one for pages, one for posts). And i list all page titles, their default content, excerpts, and tags. All post titles, their default content, excerpts, and tags. And “voila”!

    What do you think about? Please, let me know, you got my mail. ;)

    Thanks,
    Rick.

  17. October 30, 2011

    Joseph says:

    Ricardo, I understand your request and agree it would be a cool feature. If you’d like to branch the plugin and build that functionality I encourage you to do so, but I don’t have the spare time to add this features right now.

    Sorry I can’t be of much help to you.

  18. December 14, 2011

    Qian says:

    seems like quick post isnt working after i upgraded to wordpress 3.3

  19. January 17, 2012

    guga says:

    where is category selection ?

  20. January 28, 2012

    Pepa says:

    I have tried to activate your plugin and add a bunch of pages but it returns an error. I am using WordPress 3.3.1. Is it only me? Thanks!!!!

  21. January 28, 2012

    Darryl says:

    Hi,

    This looks great.

    I have the latest version of wordpress and installed through plugins.

    All loads ok, but when I attempt to add a page (one or multiple) I get this error

    Cannot load add-quick-post.

    Any ideas.

    Thanks

  22. January 29, 2012

    Joseph says:

    @PEPA, @ DARRYL — I’ve been trying to figure out why it’s broken…I can’t make heads or tales of it just yet, hang in there, I hope to have it updated soon.

  23. January 29, 2012

    Darryl says:

    :) thanks Joseph
    The script will be a great addition for many people.
    Thanks

  24. January 30, 2012

    Pepa says:

    Thanks Joseph!!!
    I’m diggin also into it to see if I see something

  25. February 18, 2012

    Darryl says:

    I am currently plugging away updating manually, let me know if there is any chance you might be able to get it working. I am happy to donate. Thanks D

  26. March 1, 2012

    Joseph says:

    Ok everybody, The plugin is fixed. It turns out, adding Quick Posts as a top-level menu page sidestepped the issue. I’m not sure why, but it’s fixed now. I tested several cases, let me know if you have problems.

  27. March 23, 2012

    faceman says:

    How does one select a custom post type? I have several on my site, and they do not appear in the “Type” dropdown.

  28. March 26, 2012

    Joseph says:

    Hi Faceman,

    I pulled that feature from this version and am adding it into a premium version. If you’re interested in that functionality, I’ll have it here for a limited time before I finish the premium version of quick posts.

    In the meantime, you can download it here:

    http://geekoutwith.me/quick-posts.zip

  29. May 7, 2012

    Rachel Morrissey says:

    In add-quick-post.php the line that has

    <?if ( 0 != count( get_page_templates() ) ) {

    Should read

    <?php if ( 0 != count( get_page_templates() ) ) {

    I think this is where a lot of people are having problems.

    Cheers dude

  30. May 15, 2012

    Joseph says:

    Thanks Rachel, the < ? without the php will work in all versions of WordPress running php5, which should be all of them by now. The most current version of WordPress requires 5.0, so this syntax should work in every install of WordPress 3.1 and above.

Leave a Comment