Problem:
The customer reported that the custom code linked to the 'cred_save_data' hook is not working correctly to get the custom field values from the related parent post and set them in the newly created post's title.
Also, the shortcode to include the custom field values from the related parent post in the form's email notification is also not working.
Solution:
After troubleshooting, suggested some changes in the custom function and the shortcodes for the related parent's custom field values.
Problem:
Custom post type relationship doesn't show the right connected posts
Solution:
The problem with Views which show all of the posts of the related type rather than just the posts which are actually connected to the current post is because you are missing a Query Filter that specifies that only posts connected to the current post should be returned by the View query.
Go back to highlight the View block and in the Content Selection add a relationship Query Filter.