I want solution like i have one post type called module and module is related to journey post and journey post has relationship with location post i want related location field in module post type and module post type has relation ship with journey post type please suggest me solution.
In order to do this you will need to create a classic view that is displaying the parent post type. So go to Toolset -> View and create a new view then select the parent post type.
Now on that view you will add a query filter for the Post ID and set it to be filtered by a shortcode attribute.
Next you will add the custom field shortcodes of the grandparent post type by adding them like this.
Where you will replace {relationship-slug} with the actual slug of the relationship between the Journey and Location. Given that it's the grandparent information.
Now just add this view to your child post template with the format.
Where ids is the shortcode parameter. Essentially you're passing the module's parent ID into the Journey view and using the Journey that is being filtered for to display its parent information.