Title: submit posts from script?
Last modified: August 18, 2016

---

# submit posts from script?

 *  [kts](https://wordpress.org/support/users/kts/)
 * (@kts)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/submit-posts-from-script/)
 * Is there an easy way to create a bunch of posts from the shell command line (
   e.g. from a php script)? I know I could write a little script to directly generate
   the MySQL INSERT commands, but it would be nicer to leverage the WP stuff that
   picks default values, etc. (I just have a bunch of files with titles and content).
   I’ve been looking at wp-admin/post.php and it doesn’t seem too straightforward
   to run something there outside the context of the admin pages.
    Thanks!

The topic ‘submit posts from script?’ is closed to new replies.

## Tags

 * [automate](https://wordpress.org/support/topic-tag/automate/)
 * [script](https://wordpress.org/support/topic-tag/script/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [kts](https://wordpress.org/support/users/kts/)
 * Last activity: [20 years, 11 months ago](https://wordpress.org/support/topic/submit-posts-from-script/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
