Nested loops
-
Hi,
First of all, I also find this Plugin great! I was looking for a solution for a publication list since quite a while and this plugin is exactly what I need.
Unfortunately I am not able to create a nested loop, which goes through all publications and sorts them first under the headline of their publication_types and then following the publication_date. Here is my code:[loop type=publications orderby=publication_type]
<h2 class=”publist”>[field publication_type]</h2>
[the-loop publication_type=this orderby=field_num key=publication_date order=DESC]
<p class=”publist”>[field image size=Medium size][field authors] ([field acf_date=publication_date date_format=”Y”]): [field title-link]. [field publisher].</p>
[/the-loop]
[/loop]The result is that the publications are shown three times and always under the publication_type of each publication. Only the sorting by date I could already sort out.
I would be super thankful if you can give me a quick hint or a link to a documentation for nested loops.
Best,
Jens
The page I need help with: [log in to see the link]
- The topic ‘Nested loops’ is closed to new replies.