Hello please does anyone know a way to automatically delete posts that doesn't get views within a period of time. Lets say if a post on my site is made and within 30 days, there are no views on the post, is it possible to automatically place the post in draft or delete it
1 Answer
You could develop a plugin to track which URLs are getting requested, store that as a custom field for each post, and then run a cron job to delete the post_id that have post_views == 0 after a set period of time.
-
-
You mean like waiting for someone else to develop it? I do not think this would be an easy plugin to develop. It is a lot easier to identify the content once every couple of months and delete it.– keepkalmCommented Feb 21, 2021 at 22:26