Generate post titles automatically based on custom fields

0

Alright? I am creating a website, unde will be registered several units of this company, in several cities of Brazil. I created a post type called drive and from the custom fields I created using the advancedcustomfields plugin has a called < I have used the acronym for each state, and I have also created a custom field called unit_city where a select will appear with all cities of each state, based on the state that the person selected above.

What I wanted was for the title of the post to be generated automatically when I clicked on publishing, taking the name of the city and the value of the custom field, thus:

São Paulo - SP
Cuiabá - MT
Salvador - BA

And so on, I found a link , but my knowledge in PHP is very basic, I could not do it.

    
asked by anonymous 16.07.2018 / 16:32

0 answers