Tell us what you are trying to do?
I have a parent post type called Location. This has a one-to-many relationship with a child type called Traditional Office.
Both of these post types have a field called Property Address.
When using a form to create a new child (Traditional Office), I would like its Property Address value to automatically be the parent Property Address (Location). It's important that these fields match.
Hi Shane,
Yes it's an address field.
And also yes, I am navigating to the child post from the parent. The url parameter is parent_location_id
Example: hidden link
That didn't quite work as I need to be able to put this inside the value of the address field on the form.
If I just display the parent address outside of the address input it works, but it doesn't work inside of the input value.
Example: hidden link
You can see the address outputted below here. I also have that code in the value of the Property Address but it doesn't work.
Code from the form:
<div class="form-group">
<label>Property Address</label>