BuddyForms WP-Posts-to-Posts --> Add Connection Parameter

Example function