Use "for each" to group posts by year?
-
Hello Eliot/CCS users,
I’m wondering if it’s possible to use the “for each” shortcode/function with the post date/year, to group my galleries by year.
Now I use a custom taxonomy “Gallery year” to get what I want, with this code:
[for each="gallery-year" orderby="name" order="DESC"] <h2>[each name]</h2> <div class="gallery-page"> [loop type="gallery"] <div class="gallery-item">[field image-link size="gallery-cover"]<span class="gallery-title">[field title-link]</span></div> [/loop] </div> [/for]
Do you think it is possible?
Thanks in advance!
Peter
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Use "for each" to group posts by year?’ is closed to new replies.