Use echo get_cat_name( $cat );
instead of the_category()
inside the link. the_category()
returns a link, so you will have a link within a link.
Use echo get_cat_name( $cat );
instead of the_category()
inside the link. the_category()
returns a link, so you will have a link within a link.