How can I check if an Entry was posted less than a month ago?

1 Answer 1

{% if entry.postDate > now|date_modify("-1 month") %}
    {# Output #}
{% endif %}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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