Problem: I have a site where Artists and Songs are custom post types. I would like to use a checkbox in the Song post to manage the display of the featured image of a related Artist post as a link to that related Artist post.
Solution: If you plan to allow multiple Artists per Song, then you must use a View of Artists filtered by post relationship, set by the post where the View is shown. In the Loop of the View, you can use the Loop Wizard to insert the post featured image shortcode and the post URL shortcode. Use those shortcodes to construct a custom link tag, like this:
If you only want to allow one Artist per song, the solution does not necessarily involve a View. The previous solution would still work, but a less complex solution is available. On the single Song template, use the same custom link tag shown in the code example above without the need for a loop.
Problem: I would like to create a front-end custom search View with filters for multiple ancestors in a post relationship.
Solution: Use the Search and Pagination panel to insert a new post relationship filter, and you can choose multiple levels of ancestors to use as filters. See the documentation links below for more information.
Problem: I would like to show a Form that will create a child post and automatically link that post to the parent post where the Form is shown.
Solution: Add a generic field in the Form and set the value using wpv-post-id and the $current_page operator. Then use the Forms API cred_save_data to trigger the post relationships API toolset_connect_posts, connecting the new post and the post where the Form is shown.