Filtering Popular Posts on Drupal: How to Filter by Time Frame with Views

| Drupal & Servers | 27 seen

In a previous tutorial, I showed how to use Views to filter popular posts on a Drupal site. Today, I will demonstrate how to filter popular posts within a specific time frame, such as a week or a month.

Note that this tutorial will only apply filters to the most viewed nodes based on their publishing date, not to all nodes within a certain time frame.

If you haven't already set up a popular blog post View, please refer to the link above and follow the steps to create your View.

To begin, open your popular blog post View and add a new filter under the "Filter" section. Select "Content: Post date" and choose "Operator: is between" in the filter settings.

In the "Min" field, enter the time frame you want Drupal to filter, for example, if you want to filter posts from the last 10 days, enter "-10 days" as the offset. In the "Max" field, enter the current time to ensure that future posts are not included in the filter.

If you have any questions or issues with this process, please leave a comment below and I will be happy to assist you.

Featured

Germany

New Synagogue Berlin

The New Synagogue in Berlin is one of the city’s most recognizable historical landmarks, located on Oranienburger Straße, within walking distance of Alexanderplatz. Its striking golden dome rises above the surrounding buildings, making it visible from afar…

Dividend Income

Dividend Income Report – March 2026 ($8.06)

After a long pause, I’ve decided to renew my dividend income reports.Between 2017 and 2022, I published these quite regularly. Since then, my focus has shifted more toward options trading as the primary tool to grow a relatively small portfolio. At this stage…

Living in Georgia

Book Reading Afternoon in Tbilisi

At the start of March, it was Book Week at the British International School of Tbilisi. Year 3 students were given a fun assignment: create a short video about their favourite book and take photos of themselves reading in unusual places.We slightly…

Subscription

Receive weekly trade ideas and portfolio adjustments directly to your inbox.

I share ongoing portfolio progress with a focus on generating income through covered calls on quality stocks. Each update includes positioning changes, trade rationale, and forward-looking adjustments based on current market conditions.