In order to dynamically connect your Directory to your individual profiles, you require an If/Else statement. This is essentially a few lines of server-side code, stitching the directory embed code and the profile embed code together.
To learn how to create an If/Else statement, visit our instructional page, here.