Single.php – Back To Category Button

Question

I’ve used this code to create a back button to my previous category and it works perfectly, but I want the button title in this case hard coded RETURN to be dynamic too TITLED the previous category.

Can someone please help me. Really struggling and finding Codex hard to understand.

”’

category_parent == 0 && $cat->term_id != 1){
echo ‘term_id ).'”>Return’;
}
break;
}
?>

”’

0
, , , , Dan 3 months 0 Answers 58 views 0

Leave an answer