How to display related custom fields ( created with metabox) inside a listing?

Hi! first post here…

So I’m trying to create an event listing.

I can display all the custom fields op the post type ‘events’.
Then there’s another related post type ‘location’ .

How do I go about to display the custom fields of the related post type ‘location’ in the event listing?
Is this possible?

UPDATE:
Yes, simply nesting a div and adding ‘MB relationship’ in the query did the trick.

You could try here for more content: https://yorkebuilders.com/

Hi
I was wondering if you could give a bit more detail on how you solved this.
I also have two related fields (event and room) I have a query loop where I output event fields and the room name.
Even though the subfields of the room are presented to me, those subfields do not display at all. I tried wrapping it all in MB relationship but got the same result.
Any thoughts would be appreciated.

Ohw, that should be very similar. For me it worked like this:

There a div with query loop for events.
Then , nested in the div (parent) , another div with a query loop is to be placed . This query loop can be set to include related content.

I hope this helps.