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

Support archive

Low Yearly Archives with EE3

Paul 24 Feb 2017 10:49 question, rejected

Im trying to use Low Yearly Archives to show a list months with a list to an individual month of articles.

I also want to show a list of years excluding the current year so the page will look something like this:

Ive had this running on EE2 but can't get it to work on EE3

Here is the code:

PHP:

EE->localize->format_date("%Y", $this->EE->localize->now);
?>

Tag:

{exp:low_yearly_archives channel="news" start_month="1" status="not closed" sort="desc" show_future_entries="no" start_year="" end_year="" dynamic="yes"}
{months}
{if num_entries > 0}
{month} | {num_entries}
{/if}
{/months}
{/exp:low_yearly_archives}

{exp:low_yearly_archives channel="news" status="not closed" sort="desc" end_year="" dynamic="no"}
{if year == ""}
{if:else}
{if entries_in_year > 0}
{year}
{/if}
{/if}
{/exp:low_yearly_archives}

Replies

  1. Low 24 Feb 2017 13:39

    Looks like your code was messed up by GetSat. Can you try again? You can use http://pastie.org/ or http://pastebin.com/ for large chunks of code.

  2. Low 24 Feb 2017 13:40

    Never mind, I see your EESE post. Will reply there.