Support

Account

Home Forums Front-end Issues Use post chosen via relationship field as permalink Reply To: Use post chosen via relationship field as permalink

  • Hi @calanthis99

    If you already have a link, then I will assume that you already have a loop to show the 2 latest performance posts.

    All you need to do is get the selected post, then load it’s permalink. You can do this like so:

    
    $selected = get_field('relationship_field_name');
    $selected = array_pop($selected);
    $permalink = get_permalink($selected->ID);
    
    

    Thanks
    E