Variable value insertion post by category.
I need to create a function that, when a post is published, the function inserts into the post via custom field the random zipcode and streetname values
There would be 15 default values per category.
When posting a post the function will take the same line as zipcode and streetname and insert it into the post via custom field.
I will post a post with the test category, it will take a random row from the table and insert the zipcode and streetname values (the same row) into the post custom fields.
I created an illustration of what it might look like on the category page to enter the zipcode and streetname values.