Passing variables in the permalink structure on a custom post type
First, adding a rewrite tag and a query var is redundant, adding the tag adds the query var. Second, $matches corresponds to each regex pattern you have in your rule, so it should be $matches[1] and $matches[2], not 2 and 4. Last, for a single member, you can just set the member query var. add_rewrite_rule( … Read more