We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Show entries for a month or year

How Do I?

From EE Slack's avatar
From EE Slack
185 posts
2 years ago
From EE Slack's avatar From EE Slack

If I have this URL, my page outputs all the News articles from the specific month automatically:

/latest-news/2020/08

{exp:channel:entries channel="news" limit="4" paginate="both"}

Nice. :+1: Is there a way to output News articles from the whole Year?

       
mithra62's avatar
mithra62
63 posts
2 years ago
mithra62's avatar mithra62

There’s a param for this:

{exp:channel:entries channel="news" year="{segment_2}" limit="4" paginate="both"}

FWIW, there are tons of optional params you can use like month, day, and lots more. Check out the Docs for reference

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.