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 2 years 2020-09-04T06:10:24-05:00 0 Answers 69 views 0

Leave an answer

Browse
Browse