Title: Where does WP Post?
Last modified: August 18, 2016

---

# Where does WP Post?

 *  Resolved [influece](https://wordpress.org/support/users/influece/)
 * (@influece)
 * [19 years ago](https://wordpress.org/support/topic/where-does-wp-post/)
 * I am trying to combine WordPress with the Vanilla forums.
    What I want is that
   every post I make with wordpress, should be a new thread on vanilla. So basicly
   after WordPress inserts the data in the WP tables, I want it to insert the same
   data in the Vanilla tables. Now my question is where do I put the code to enter
   it in the Vanilla tables?

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Thread Starter [influece](https://wordpress.org/support/users/influece/)
 * (@influece)
 * [19 years ago](https://wordpress.org/support/topic/where-does-wp-post/#post-572042)
 * I realised my question was a little bit vague so let me try again: In which file
   does wordpress insert the data into the database after I clicked the PUBLISH 
   button?
 * I looked at post.php in the includes folder, and tried pasting my code on line
   641 (right after the first big INSERT query) and on line 1374 (right after the
   second big INSERT query) but neither of those worked. Its like the script doesn’t
   even get executed.
 *  [DianeV](https://wordpress.org/support/users/dianev/)
 * (@dianev)
 * [19 years ago](https://wordpress.org/support/topic/where-does-wp-post/#post-572043)
 * Sounds like you’re going to have to tie the databases together.
 *  Thread Starter [influece](https://wordpress.org/support/users/influece/)
 * (@influece)
 * [19 years ago](https://wordpress.org/support/topic/where-does-wp-post/#post-572045)
 * Everything is set up correctly, I already got the authentication system working.
 *  Thread Starter [influece](https://wordpress.org/support/users/influece/)
 * (@influece)
 * [18 years, 12 months ago](https://wordpress.org/support/topic/where-does-wp-post/#post-572298)
 * I still haven’t found it yet, any help is welcome and greatly appreciated.
 *  [jamespoling](https://wordpress.org/support/users/jamespoling/)
 * (@jamespoling)
 * [18 years, 12 months ago](https://wordpress.org/support/topic/where-does-wp-post/#post-572313)
 * if you’re asking what DB table the posts go into all you have to do is look at
   your WP DB. The table is called wp_posts or something like that.
 *  Thread Starter [influece](https://wordpress.org/support/users/influece/)
 * (@influece)
 * [18 years, 12 months ago](https://wordpress.org/support/topic/where-does-wp-post/#post-572314)
 * No, I knew that, thanks anyway. What I mean is, which file contains the query
   that sends it all to the DB, when I submit a new post.
    That way I can make my
   own query, and make WP execute them both.
 *  [ceejayoz](https://wordpress.org/support/users/ceejayoz/)
 * (@ceejayoz)
 * [18 years, 12 months ago](https://wordpress.org/support/topic/where-does-wp-post/#post-572315)
 * You can make a plugin to attach to the publish_post action.
 * [http://codex.wordpress.org/Plugin_API/Action_Reference](http://codex.wordpress.org/Plugin_API/Action_Reference)
 *  Thread Starter [influece](https://wordpress.org/support/users/influece/)
 * (@influece)
 * [18 years, 12 months ago](https://wordpress.org/support/topic/where-does-wp-post/#post-572321)
 * Woah didn’t even know that existed. Thanks alot for all the support. I think 
   I’ll manage from now.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Where does WP Post?’ is closed to new replies.

## Tags

 * [combine](https://wordpress.org/support/topic-tag/combine/)
 * [database](https://wordpress.org/support/topic-tag/database/)
 * [tables](https://wordpress.org/support/topic-tag/tables/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 8 replies
 * 4 participants
 * Last reply from: [influece](https://wordpress.org/support/users/influece/)
 * Last activity: [18 years, 12 months ago](https://wordpress.org/support/topic/where-does-wp-post/#post-572321)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
