WordPress.org

Ready to get started?Download WordPress

Forums

Adding New Fields To Post (2 posts)

  1. bjorn2404
    Member
    Posted 5 years ago #

    I'm adding a few extra fields to my post pages and I'm wondering where data is inserted into the database. I assume it's being done in the /wp-admin/includes/post.php but wanted to check. I guess I'm confused by not seeing many SQL Insert statements.

    I don't think I can use the "custom fields" functionality because I'm populating a select list from a different part of my database that isn't part of WP.

  2. bjorn2404
    Member
    Posted 5 years ago #

    Ok, for anyone else that was wondering - the wp_insert_post function is defined in wp-includes/post.php

    I didn't expect it to be outside the admin directory.

    Thanks for all the help as usual wp community...

Topic Closed

This topic has been closed to new replies.

About this Topic