Is it possible to filter the results from the relationship field on the front end website so that they display by post type and/or taxonomy rather than just a list of all selected items.
So on the front end we would end up with a
for each of the post types and taxonomies that were selected in the admin.
Custom Post Type 1
Custom Post Type 2
Custom Taxonomy 1
Custom Taxonomy 2
I’ve done this with get_post_type():
$rel_field_ids = get_field( 'rel_field' );
$rel_field_ids_grouped = array();
foreach ( $rel_field_ids as $rel_field_id )
$post_type = get_post_type( $rel_field_id );
$rel_field_ids_grouped[ $post_type ] = $rel_field_id;
ksort( $rel_field_ids_grouped );
print_r( $rel_field_ids_grouped );
Code not tested.