Title: bulk load
Last modified: August 19, 2016

---

# bulk load

 *  [cokmulazim](https://wordpress.org/support/users/cokmulazim/)
 * (@cokmulazim)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/bulk-load/)
 * Hello
 * I have lots of small stories, quotes as text format (more than ten thousand) 
   and lots of jpeg, avi file. All of the items are distrubuted into subfolders 
   regarding to categories
 * I want to load this content into WP blog with bulk load. Is there any tool for
   that and then publish
 * I tried some insert lines but I don’t have any exact information about WP table
   relations so I have some problems in my inserts.
    I can generate insert lines
   but I need more information
 * Has any idea about it ?
 * Regards

Viewing 1 replies (of 1 total)

 *  [simplistik](https://wordpress.org/support/users/simplistik/)
 * (@simplistik)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/bulk-load/#post-1835617)
 * I’ve had to do this in the past, you’ll want to look at:
 * [http://codex.wordpress.org/Function_Reference/wp_insert_post](http://codex.wordpress.org/Function_Reference/wp_insert_post)
 * and
 * [http://codex.wordpress.org/Function_Reference/wp_insert_attachment](http://codex.wordpress.org/Function_Reference/wp_insert_attachment)
 * You’ll read your directory and loop through the text files, using wp_insert_post()
   to create the post, and it’s associated categories. wp_insert_post returns the
   ID of the post that it just created so after the post is insert you’ll do the
   wp_insert_attachment() using the ID from the insert post as the $parent_post_id
   variable.

Viewing 1 replies (of 1 total)

The topic ‘bulk load’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [simplistik](https://wordpress.org/support/users/simplistik/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/bulk-load/#post-1835617)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
