Dear ianpullens
You need write some custom code and use save_post filter to fill those values.
The meta_key name with parent post id is: _wpcf_belongs_{parent-post-type-slug}_id.
If parent post type is “City” (like Post)and and has slug is city then meta_key will bye _wpcf_belongs_city_id.
Cheers,
Marcin
Thank you for responding so quickly.
I think I understand but I’m still quite new at this.
This is what I’m using right now: (inside of a function that first checks the post type and then saves after looking for my field data.)
foreach ( get_post_custom_values( 'wpcf-my-parent-field') as $key => $parent_field_value );
$child_field = $parent_field_value);
In this above code example, I’m not calling on the $post_id after the key for get_post_custom_values … yet
Assuming my parent post-type is “city” I tired this but I’m doing something wrong. Sorry for bing so novice…
$parent_id = '_wpcf_belongs_city_id';
foreach ( get_post_custom_values( 'wpcflmy-parent-field', $parent_id) as $key => $parent_field_value );
$child_field = $parent_field_value);
`