I have joomla 2.5, where the article contain parent and sub categories. Like below:
- Article 1 categories are news -> campus -> institute
- Article 2 categories are news -> campus -> university
- Article 3 categories are news -> campus -> institute
- Article 4 categories are news -> campus -> university
in here, news is categories parent of campus, and so on. I know every category has unique catid. But, in database, joomla only record each article based on last category. So, if I want to get articles based on news id, then the result is empty array. So, I must choose institute or university id. But, what I want is how to get article with institute and university categories together.
Is there any one can help me how to solve the problem with php of joomla 2.5?