I am an amateur and I am trying to edit a theme that I have bought and I am not able to display the category name and link. Does anyone to resolve this problem.
<div class="item-info">';
if($show_aut!='0'){
$author = get_author_posts_url( get_the_author_meta( 'ID' ) );
$html .= '<span class="item-author"><a href="'.$author.'" title="'.get_the_author().'">'.get_the_author().'</a></span>';}
//DISPLAY CATEGORY LINK AND NAME
if($show_sub_aut!='0'){
$subaut = get_the_category();
$html .= '<span class="item-sub-aut"><a href="'.$subaut.'" title="'.get_category_link().'">'.get_category_link().'</a></span>';}
if($show_date!='0'){
$html .= '<span class="item-date">'.get_the_time(get_option('date_format')).'</span>';}
$html .= '<div class="item-meta no-bg">';
if($show_view!='0' ){
$html .= tm_html_video_meta('view',false,false);}
if($show_com!='0' ){
$html .= tm_html_video_meta('comment',false,false);}
if($show_like!='0'){
$html .= tm_html_video_meta('like',false,false);}
$html .= '</div>
</div>';