WP the_posts() on single-cars.php get category link

get_the_category() only works with the default taxonomy, per the Codex page; you probably need to use get_the_terms() instead.

So you’d replace your get_the_category() call with get_the_terms( $post->ID, 'brands' );, if I’m not mistaken.

tech