It it possible to expire a post after a certain number of days (say 90 days) so that after that point it is no longer viewable?

Thanks,
Pnub

Comments

anner’s picture

You can check out the scheduler module. It is not officially released for 4.7, but is in active development. It can unpublish at a given time.

headless_pnub’s picture

This works for manually setting a post on or remove post date, but i would like all posts to automatically be removed after say 90 days from the date they were published. Is this possible with the scheduler module or is there another way to achieve it?

Thanks,
Pnub

anner’s picture

I would right a script that changes the db field from published to unpublished for all entries older than 90 days and add it as a daily cron.

anner’s picture

You can check out the scheduler module. It is not officially released for 4.7, but is in active development. It can unpublish at a given time.

amnon’s picture