I would like to group entries into categories with a similar function as the_date offers for posts to group them all into one day.
I am posting on a page like this:
post 1: category 1
post 2: category 1
post 3: caregory 1
post 4: category 2
post 5: category 3
post 6: category 3
and I would like them to be displayed in the same order ar posted but all the ntries in one category should hvae one head line above with the name of the category displayed. So they would be separated from entries that follow, but are in other category. Categoreis will never repeat, so the pot 7 will never have aan already existing category from before, except the last one.
How could I do this?
- The topic ‘Group entries by category’ is closed to new replies.