I have a few different custom post types. Can I get data which is saved in cpt A to prepopulate fields in cpt B? Or have the two cpts share those data?
The issue is that I want every cpt B to be searchable by things like contact info, rather than have to enter the same data every time I figured it should be saved as its own post type (cpt A) which then just shares its fields, or data.
I decided to pull the data from wp_option table instead so that the client will have an easy to find place to update contact information.
Now, I have tried many variations on this. The variable is getting the data from option but the field is not updating. As you can see I wan this to work with several fields but I’m starting with just the name because I cannot even get that to work. Any idea what I’m doing wrong here?