Support » How-To and Troubleshooting » [Resolved] Hiding Comments by date

[Resolved] Hiding Comments by date

  • I am looking for a way to hide the comments on one of my pages if the comment was made more than “x” Days ago. I don’t care if the comments are deleted, trashed, unapproved or whatever. Just as long as they don’t show up.

    I have looked around for a plug-in but with no luck. If anyone can help me out, it would be very much appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Josh


    Moderator and Editor Customizer

    I’m not sure about that… but you do know you can automatically close commenting after a certain number of days?

    I dont want to close the comments, I just want to hide old ones. Its for our company intranet where people can post things (using the comment structure) they want to sell, but we want to filter out things that have been posted for too long, while still allowing people to make new postings(comments).

    I found a way to do this quite. I set up a condtion that checks the timestamp of the current day – 15 to the timestamp of the comment date. If the day is acceptable, then continue to create the comment. If not, do nothing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Hiding Comments by date’ is closed to new replies.