Where you will replace "my-parent-field-slug" with the slug of the custom field on the parent and "relationship-slug" with the slug of the post relationship.
I think you haven't got my point. I am not talking about post-relationship.
I have created one nested view (child view) named as Exam Detailed Syllabus Child in another view (parent view) named as Exam Detailed Syllabus .
Now I want to use a custom field from the Parent view in the Child view. In that case, I don't know what should be the 'relationship-slug'?
Thanks.
Are your views nested? Meaning is your child view inside your parent view ?
If that is the case then method 2 that I shared will work.
If that is not the case then only Method 1 will work. You can actually call the parent custom field directly as long as the relationship slug is provided in the shortcode.