Use WP-query in WordPress to retrieve Pods Relationship Custom Post Type Content

When you try to retrieve a Pods relationship custom post type content, you will find that you cannot get the  post content with the id. this is because “the_content()” do not allow to specific a post id.

Also, if you are using Siteorigin site builder, you will find out that getting the “post_content” field, your layout will not work. I found a practical solution, that is getting the post content with a WP_query loop, using the related post id into the query, getting Siteorigin working as expected. Here the full query, on this case, i’ m retrieving from the Custom Post Type “room” the “hotel” content and output it into a template.