Title: Custom query filter by date
Last modified: March 23, 2021

---

# Custom query filter by date

 *  Resolved [clementeronimo](https://wordpress.org/support/users/clementeronimo/)
 * (@clementeronimo)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/custom-query-filter-by-date/)
 * Hi,
 * I want to set a custom query psot filter for a video carroussel. With elementor
   I have the possibility to set to a category and sort by random. I want to add
   to that a filter that allow to display only the posts of the last 30days.
    Someone
   know how to that ? Or I keep digging 🙂 Best regards, Clément
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-query-filter-by-date%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [saidaboukhadra](https://wordpress.org/support/users/saidaboukhadra/)
 * (@saidaboukhadra)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/custom-query-filter-by-date/#post-14268850)
 * .
 * .”

Viewing 1 replies (of 1 total)

The topic ‘Custom query filter by date’ is closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

## Tags

 * [custom-query](https://wordpress.org/support/topic-tag/custom-query/)

 * 1 reply
 * 2 participants
 * Last reply from: [saidaboukhadra](https://wordpress.org/support/users/saidaboukhadra/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/custom-query-filter-by-date/#post-14268850)
 * Status: resolved