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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)