• Resolved veritatissplendor

    (@veritatissplendor)


    I have a CPT, “Volunteer Opportunities” (volunteer_opportunity) which uses a Relationship Field with multi-select. This allows me to mark which Pages the volunteer opportunity is related to.

    For example, the Volunteer Opportunity called “Food Pantry Support” would be related to two program Pages (normal pages, not CPTs): “/metro-food-pantries” and “/rural-food-pantries”

    On each Volunteer Opportunity post, I want to display a list of each related Page, and include the URL to that page. That way, for example, a volunteer could see which of our programs the volunteer_opportunity “Food Pantry Support” is related to, and click to go learn more about those programs.

    I took a look at this documentation page which says “By default, Pods will not link to the related object URLs when displaying. If you want to do this, you can look at field() or using [each].”

    I’m trying to use the Each loop but don’t know what fields to call.

    This is an Elementor Pro site and I am building a single post template for the volunteer_opportunity CPT.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Display Title and URL Link of Related Pages (Relationship Field) using Each’ is closed to new replies.