In this case I use WordPress to manage a table of “records” instead of blog posts. I already had this table with another script, but needed a flexible category system like WP has.
Yes, I went into MySQL to add these fields. I’m not a PHP/SQL coder, but I’m trying to get to the basics, not pile on more WP specific code and plugins.
Again, as far as I can tell the Custom Field option stores data as meta data, not regular fields. That is no good, because I want to be able to access the same “records” table through other scripts.
Even with turning off post revision the latest versions of WordPress don’t seem to keep the integrity of the records. They still create new versions with new IDs.
I also couldn’t get custom permalinks to work in my modified WP 2.6 experiment. In 2.2 it works beautifully. For straightforward blogging WP 2.6+ is fine, for anything else WP has jumped the shark imho.
So no, thanks for your effort, but your post was not helpful at all. I deliberately mentioned these points in my original question, hoping to avoid answers like yours.
So forget all that, here’s my question again:
I have manually added several custom fields in the ‘posts’ table in the database (‘tagline’, ‘url’, ‘address’, etc.). I’m trying to edit edit-form-advanced.php to add form input elements for these fields to the editor page in admin.
Adding the form input elements is not that complicated, getting the input stored is trickier. Where is the code/query that stores the data from the edit-form into the MySQL ‘posts’ table? Which WP files are involved in this process?