0

I am not sure why this doesn't work:

<h3>Archives</h3>
    <ul>
            {exp:channel:month_links channel="blog" limit="12" category_id="41" show_empty="no"}
                    <li><a href="{path='fr/blog/archives'}">{month}, {year}</li>
            {/exp:channel:month_links}
    </ul>

I'm getting archives of months that have no entries from the category show up in the ul, so if you click them, you'd get a blank page. Why aren't they being filtered out by the 'show_empty="no"' tag?

1

According to the list of parameters in the user guide, the month_links tag doesn't support the category parameter. You could use Low Yearly Archives, which does allow you to filter the archive links by category.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.