Title: How to create a post programatically?
Last modified: August 19, 2016

---

# How to create a post programatically?

 *  [wrybread](https://wordpress.org/support/users/wrybread/)
 * (@wrybread)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/how-to-create-a-post-programatically/)
 * I have a database table that I’d like to use as the source for some postings.
   Suppose a row of the table looks like this:
 *     ```
       id=5
       name=jack
       title=jack's dream
       content=i was flying around a lot.
       ```
   
 * When someone visits the page myblog.com/view.php?id=5 (or whatever), I’d like
   to display a blog post that looks like this:
 *     ```
       Jack's Dream
   
       by Jack
   
       I was flying around a lot.
       ```
   
 * I’d like this to be like any other blog posting, with the ability for viewers
   to add comments.
 * And if I change the data in the database table, the page should reflect that.
   In other words, the data would be live, as opposed to being transferring to the
   main blog postings table.
 * Any tips?

Viewing 1 replies (of 1 total)

 *  Anonymous User
 * (@anonymized-473288)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/how-to-create-a-post-programatically/#post-1861628)
 * Take a look at FeedWordPress.
 * It might be a solution to create a PHP page as RSS feed from your database records
   and then import this through FeedWordPress for example.

Viewing 1 replies (of 1 total)

The topic ‘How to create a post programatically?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: Anonymous User
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/how-to-create-a-post-programatically/#post-1861628)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
