Low Yearly Archives - Year not filtering correctly
Hi Low,
I was trying to get Low Yearly Archives to display the months for 2012, but my code is only displaying the current month:
<ul>
{exp:low_yearly_archives channel="blog" status="open" monthsort="desc" start_year="2012"}
{months}
{if "{num_entries}" != "0"}
<li><a href="/{segment_1}/archives/{year}/{month_num}/">{month} {year}</a></li>
{/if}
{/months}
{/exp:low_yearly_archives}
</ul>
If I change the year to 2013, it displays 2012's posts as I was hoping the above code would show. If I change it to 2011 or 2010, it displays the last 12 months.
Is this a bug, or can you tell me if I'm doing something wrong with my code please? I'm using EE 2.5.0 and Low Yearly Archives 2.2.
Thanks,
Stephen
Replies
Low 2 Jul 2012 15:04
Hi Stephen,
Have you tried setting the start_year="2012" end_year="2012" start_month="1" and end_month="12" parameters like I just did?
Stephen 4 Jul 2012 04:22
Hi Low,
Thanks for this, it worked perfectly! :-) I didn't realise I had to enter all the parameters at once, so I'll be sure to do this from now on.
Thanks,
Stephen