Get parrent category name

Question

I have 3 levels of categories:

Cat 1
- Cat 2
- Cat 3
-- Cat 4

I want to add Parent category name after page title. For example:

<h1>Cat 4</h1>
<p>From Cat3 in Cat 1</p>

But only for third level. Is it possible and what is the better way to do this correct? Thanks!

0
, , Alexander Goroshev 2 years 2019-12-05T15:26:09-05:00 0 Answers 101 views 0

Leave an answer

Browse
Browse