Pods Relationship Field

Hello :wave:

Does anyone know how to reference an inner value on a relationship field?

Say I have City CPT and a State CPT.

On the City CPT I have a relationship field that points to the correct State - {pods_city_state}

On the city page I can get the relationship which gets me the page title, but I cannot figure out how to access a field on the State CPT.

I assume Iā€™m missing something easy here.

1 Like

The only solution I have found so far is to use a custom PHP function.

In your case, that could be lookup_state_details() which returns a string with all the information you want to display about that state.

You would call this function from a bricks element using dynamic data as follows:

{echo:lookup_state_details)