Home Forums Front-end Issues Display related posts by main category


Display related posts by main category

  • Hello,

    I found this ressource about ACF relation posts :
    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 ?


  • No one have the answer ?

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Display related posts by main category’ is closed to new replies.