Support » Plugin: Pods - Custom Content Types and Fields » URL for related post selected with relationship field

  • Resolved Jay Collier

    (@jcollier)


    I have a post type (events) with a relationship field to one post in another post type (preserves).

    I am showing the related preserve name in my events pod template by using this:

    {@event_preserve_name}

    However, I want to include a link to that related preserves post. I tried this:

    [each event_preserve_name]
    <a href="{@permalink,esc_url}">{@post_title}</a>
    [/each]

    That returned links to all of the preserve posts. I only want the URL to the one related preserve post.

    This is probably very simple, but I was unable to find it in documentation or search.

    Can I do this with a magic tag or template tag?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.