A news archive becomes easier to explore when readers can narrow it to a particular day or period. A publication-date filter helps someone find an announcement from last month without changing the result cards or creating a separate archive page for every date. This guide uses Filter Query Block 4 with the native WordPress Query Loop.
You need Filter Query Block Pro for this guide. The current Free edition, Accomplice Query Loop Filters on WordPress.org, provides taxonomy choice filters. Publication-date filters, including single dates and ranges, belong to Pro. If you are starting from scratch, follow the version 4 setup guide first.
Start with the date your readers mean
Publication date means the WordPress post’s publish date. It is useful for news, articles and announcements. It differs from the date an article was last edited and from a date stored in an event or booking field. An event published in September for a November performance still has a September publication date.
Choose a clear visitor label such as “Published date”. For this walkthrough, use a working Query with published entries whose dates you know. Note one entry just before your intended range, one on each boundary and one just after it. These give you a concrete way to check that the controls match the archive you intended.
Add the publication-date control
Open the page in the block editor, select the filtered Query or its filter bar and choose Edit Filter Query. Confirm the content source under Content, then open Filters and add a Date Filter. Keep the existing Query and Post Template so the cards and pagination remain familiar.
In the date control’s Basic settings, set Date mode to Publish date. Set its Label to “Published date” or another phrase that fits the page. A publication-date control uses the post’s built-in date; you do not need to create a custom field or select an event-date source.
Under the control’s Data settings, use Selection to choose Date range or single date, On a date, On or before or On or after. Choose the mode that answers the reader’s question. A general archive often needs a range; a daily bulletin may be clearer with one date.
Keep a Reset Filters control available. If your filter bar uses an Apply button, keep that control too. Choose Apply changes, then save the page. Applying the settings updates the blocks; saving the page makes your configuration available on the front end.
Understand what the selected dates include
A range includes both boundary days. For example, 1–31 October includes matching posts published on 1 October and on 31 October. It leaves out posts published before or after that period. The filter uses the stored WordPress publication date, so check the site’s date and time settings when comparing a post with an external timestamp.
The one-sided modes are useful for open-ended requests. “On or before” includes the selected day and earlier posts; “On or after” includes that day and later posts. Choosing “On a date” limits results to that day. Filtering narrows the Query’s existing results; it does not change a post’s publication date or turn a draft into public content.
Check the results readers will see
Preview the saved page and open Choose dates. Click the start day and end day, then choose Apply date selection. For a single day in this range picker, click one day and apply the selection. Use the filter bar’s Apply button if the design requires it. Confirm the two boundary entries appear and the entries just outside the range do not. Try a single day and each one-sided mode you intend to offer. Check a range containing no posts, then use Reset to return to the original feed.
If the archive also has a category filter, choose a category and repeat the date check. The date filter narrows that selection further. Check the next results page and open a copied filtered URL in another tab. Use the shared-links and pagination guide for that review. On a phone, check labels, date inputs and access to Apply and Reset.
Recover from an unexpectedly empty archive
Clear the date and other visitor selections first. Confirm the expected post is published, belongs to the Query’s selected post type and satisfies any fixed Query restrictions. Check its publish date rather than its modified date or a date mentioned in the article text. Widen the period to see whether the missing post falls just outside it.
Keep a useful no-results message near the feed, such as “No posts match these filters. Try a wider date range or reset your selections.” Once dates behave as expected, use the buttons-versus-dropdowns guide to make any accompanying topic filter easier to browse.