I’m currently trying to build a FAQ page where all the faq is inside their own category as shown in the image. I’m using a foreach which loads all the faq data which are the accordions in the image but what i’m struggling with is grouping them by category id and then placing them in the category card? Does anyone know a good approach to this?
Thankyou very much!
Faq table consists of
[name, content, date, cat_id, status]
Category Table consists of
[name, content, date, type, status] e.g. FAQ Cat. I'm FAQ content, 07/09/2018, 2, 1