I changed this line:
$wp_rewrite->add_rewrite_tag( '%selected_meta%', '([^&]+)', '?meta=" );
Into:
$wp_rewrite->add_rewrite_tag( "%selected_meta%', '([^&]+)', 'post_type=ervaring&meta=" );
Wich was for both issue 1 and 2 enough to work with.
I changed this line:
$wp_rewrite->add_rewrite_tag( '%selected_meta%', '([^&]+)', '?meta=" );
Into:
$wp_rewrite->add_rewrite_tag( "%selected_meta%', '([^&]+)', 'post_type=ervaring&meta=" );
Wich was for both issue 1 and 2 enough to work with.