WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Where does WP Post? (9 posts)

  1. influece
    Member
    Posted 6 years ago #

    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?

  2. influece
    Member
    Posted 6 years ago #

    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.

  3. DianeV
    Member
    Posted 6 years ago #

    Sounds like you're going to have to tie the databases together.

  4. influece
    Member
    Posted 6 years ago #

    Everything is set up correctly, I already got the authentication system working.

  5. influece
    Member
    Posted 6 years ago #

    I still haven't found it yet, any help is welcome and greatly appreciated.

  6. jamespoling
    Member
    Posted 6 years ago #

    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.

  7. influece
    Member
    Posted 6 years ago #

    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.

  8. ceejayoz
    Member
    Posted 6 years ago #

    You can make a plugin to attach to the publish_post action.

    http://codex.wordpress.org/Plugin_API/Action_Reference

  9. influece
    Member
    Posted 6 years ago #

    Woah didn't even know that existed. Thanks alot for all the support. I think I'll manage from now.

Topic Closed

This topic has been closed to new replies.

About this Topic