Using the blog tutorial, I would like to have an option where you can see the posts on the “main” index page until the post has been active for x days. After this time period of x days I would like the post to be set as “expired” in the database. Can anyone shed some light on the best way to achieve this?
Share
If you use paginate then use:
NOTE HERE $x is your intarval
For normal find() use this: