how get curent URL slug from archive page [closed]

You can use get_query_var() to get what you want in the query made with the request.

$vendor = get_query_var('vendor');

If the vendor var is set, $vendor will be ‘vender-two’.

Hope it helps