Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

Hoa to check main category of post

Adam O. · ·
2:39 PM Tuesday, 29 December 2015
Hi there,

I've got a question about categories.

I need to check in list of posts what is main category, where the post is added.

My categories structure looks like below:

Main category 01
- subcategory 01
- subcategory 02

Main category 02
- subcategory 03
- subcategory 04

and I need to show not directly category, where the post is added, but category above subcategory.

So how can I check this and show in post in list view (default.main.php) by adding some short code?

I'll be very grateful for your help with this thread!
Best regards!
The replies under this section are restricted to logged in users or users with an active subscription with us