I am trying to come up with a way to “lock” the post title and content fields on a form so that the data is not changed.
I am using one form to add new posts and that form has normal fields. However, on the edit form I don't want the user to change anything except the post tags. I am trying to make the form save the record with only the tags changed?
What, exactly, should I type into the hidden field so that it maintains the current value in the data base. Whatever I enter is saved as a text entry (i.e. the text “post_title”) and not the db value.
Or if I need to add a function to functions.php, please share the code with me that does this.
I would greatly appreciate your help as I have been trying to sort this out for several days now.