0

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

2

1 Answer 1

0

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.

2
  • Is there an easy way to do that? Commented Feb 20, 2021 at 19:44
  • 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.
    – keepkalm
    Commented Feb 21, 2021 at 22:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.