Hello,
I found this ressource about ACF relation posts : https://www.advancedcustomfields.com/resources/relationship/
The code is make to display all the related posts one by one.
Is it possible the change it in order to display related posts order by main categories ?
Something like :
– get all the main categories of all the related posts
– foreach category : display all the posts in it
I have something like :
Actors have a profil page, they are link to movies, movies are in multiple categories, movies all have a main category
I want to display all the movies an actor has play in but I want to display them by categories (it easier to read).
Does someone have a solution for that ?
Thanks