WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Hiding Comments by date (4 posts)

  1. bahumba
    Member
    Posted 1 year ago #

    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.

  2. Josh (WP Edit)
    Member
    Posted 1 year ago #

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

  3. bahumba
    Member
    Posted 1 year ago #

    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).

  4. bahumba
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic