Draft Post Generator
Quickly generate multiple draft posts or pages with optional hierarchical structure using hyphen-based indentation.
Install in
Draft Post Generator is a WordPress plugin that allows bulk creation of draft posts from a list of titles. It supports custom post types and allows for hierarchical structures using hyphens to indicate nesting.
Features
- Bulk draft post creation from newline-delimited titles.
- Hierarchical post generation using hyphens (if post type supports parent).
- Supports all public custom post types.
- Integrated into the WordPress admin Tools menu.
Usage
- Navigate to Tools Draft Post Generator in the WordPress admin menu.
- Enter post titles, one per line. Use hyphens to indicate nesting for hierarchical post types such as pages.
- Select the desired post type and post status.
- Click Generate Posts to create the posts and see how many were created, skipped, or failed.
Title Hierarchy Rules
- Top-level posts: No hyphens (e.g.,
Post A) - Child posts: One hyphen (e.g.,
- Post B) - Grandchild posts: Two hyphens (e.g.,
-- Post C)
Enter each parent before its children. If a parent is missing or could not be created, its descendants are reported as failures.
Example Hierarchy
Home Page
About Us
– Team
– History
Services
– Web Development
– Graphic Design
License
This plugin is licensed under the GNU General Public License v2.0 or later.
See https://www.gnu.org/licenses/gpl-2.0.html for full license text.
Written by Joobi from the project's own listing. See the source page
1.0.3
- Validate post types, statuses, and permissions before bulk creation.
- Fix parent assignment and preserve backslashes in post titles.
- Show per-user batch results and make form labels accessible.
- Update WordPress compatibility metadata and coding standards.
1.0.2
Minor updates with safe redirects, escaping error message on insert.
1.0.1
Minor updates with escape variables, languages support.
1.0.0
- Initial release.
Follow this listing's changes (Atom feed)