Parent category id to be used to display related posts
-
Hey!
I’m trying to figure out a way to get ID of parent category of a post. I have only two levels of categories. There are four top categories and each has their own sub-categories.
Once I have this ID, I will make use of it to display posts from the same category right after the post. Sort of related posts.
It’s probably very easy but I can make any of the solutions I found work.
Some help here would be much appreciated.
thanks.
- The topic ‘Parent category id to be used to display related posts’ is closed to new replies.