I think there are multiple issues here:
1) Because you’re using query_posts()
the post object’s query_vars are inherited by your new query_posts()
. I suspect then, that 'post_type' => 'persoane'
is implicitly part of that query posts call. If you switch to using WP_Query instead of query posts, I suspect that will fix the issue.
2) Have you double checked that get_query_var('term')
is returning what you expect? I think that only works on taxonomy archive pages. Instead, you’ll want do use get_the_tags()
.