There is already a forum post on this topic. See:
But it was never resolved and has now been closed for comments.
WordPress allows you to set the number of days until comments automatically close on a post. How can I display the number of days until the comments close on a post?
I have found a way to do the calculation of the ‘days until’ a future date in PHP. See:
Regarding the code above, since WordPress knows in how many days comments will close, I want to reference that data as opposed to using my own version of $day/$month/$year.
- The topic ‘Display 'days until' comments are closed?’ is closed to new replies.