All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Month archive links for specific category

info 4 Jan 2013 15:07 question, complete

Hi Low, I'm trying to show monthly archive links but for specific categories using conditionals. The code below lists the month for every post in that month, instead of just once and also instead of the month name it displays the month as a number. Thanks


{exp:channel:entries channel="blog"}
{categories}
{if category_id == "3"}
{exp:low_yearly_archives channel="blog" sort="desc" category="3"}
{months}{month} {year}{/months}
{/exp:low_yearly_archives}
{/if}
{/categories}
{/exp:channel:entries}

Replies

  1. Low 7 Jan 2013 08:15

    Nesting the YA tag inside the channel:entries tag will cause conflicts with the variables. Also, from a performance point of view, I would not recommend this approach.