GPLClub
🔌 Plugin

FacetWP Time Since Addon

v1.7.2 · Updated 12 Apr 2025 · Official site

Antivirus scan

Powered by ClamAV

✅ Verified clean

This product file has passed our security filters.

Want to run a fresh ClamAV scan right now? Takes a few seconds and shows scanner version, signature DB and live result.

This can take 5 to 30 seconds.

✓ !

Clean file Threat detected

No threats detected in this file.

File
Size
Scanned
ClamAV
Signature database

⚡ Powered by ClamAV

!

Scan could not be completed

Report product

If you detected an issue (broken file, malware, inappropriate content, etc.) let us know and we'll review it ASAP.

Sign in to report
FacetWP Time Since Addon · Plugin for WordPress
Follow

About FacetWP Time Since Addon

For people who want last 30 days buttons, not a calendar

Visitors to a listing that ages (news, events, deals, recipes) rarely think in exact dates: they think in terms of recent. Asking them to pick two dates in a calendar means making them calculate what you already know.

FacetWP Time Since Addon is for that buyer: someone who already works with FacetWP and wants options like Past 7 Days or Next 7 Days. It is not for you if you need visitors to type any start and end date (FacetWP has a separate date range facet type for that). It does not work on its own either: it is an add-on for FacetWP. And if you use a custom field, it must store the date in YYYY-MM-DD format.

FacetWP Time Since Addon: each choice is one line of text

Choices are written one per line in the form label | format. The format is based on PHP's strtotime function, so it accepts relative date expressions. Some examples:

  • Past Day | -1 day
  • Past 7 Days | -7 days
  • Past 90 Days | -90 days
  • Past Year | -1 year
  • Next 7 Days | +7 days
  • Today | today
  • Tomorrow | tomorrow
  • Yesterday | yesterday

You choose the labels, so they can be in your own language, and they can be translated with the facetwp_i18n hook.

Where the date comes from: publication, modification or an ACF field

As the data source you pick a date field, such as the post date or the last modified date, or a custom field in YYYY-MM-DD format, for example an ACF Date Picker or Date Time Picker. With the modified date you can offer something like Updated this week on content you review often. Intervals are calculated using the timezone in WordPress General Settings.

Radio, dropdown or fSelect, and what happens with empty choices

The interface can be radio, dropdown or fSelect (a single-select dropdown with a search box). In dropdown and fSelect, the first default choice is Any and you can change its text; in radio, that choice appears as long as the label is not empty.

With the ghosts option enabled, choices with no results are shown dimmed and cannot be clicked; without it, they are hidden. There is a nuance: you can deliberately create choices with zero results even before filtering.

FacetWP Time Since Addon and PHP: custom intervals need code

If you want a choice like Older than 1 year, add the line Older than 1 year | over-1-year. PHP cannot interpret that token, so you have to define the range with the facetwp_time_since_date_range filter, giving the lower and upper date. The code goes in the child theme's functions.php, in the Custom Hooks add-on or in a snippets plugin.

The counts next to each choice can be hidden with CSS, but the general rule also affects other facets that show counts (checkboxes, radio, hierarchy, among others), so it is best to target only Time Since facets.

Questions before setting up relative date filters

Does it work without FacetWP?

No. It is a facet type that adds to FacetWP and is configured inside it.

Can I offer future dates?

Yes: Next 7 Days, Today or Tomorrow are valid formats, as long as the source field contains future dates.

Can visitors pick a free range?

No. They only see the choices you write. For free start and end dates, use FacetWP's date range facet type.

Does it respect my timezone?

Yes, it uses the timezone set in WordPress General Settings.

Version history

  • v
    1.7.2 Current 12 Apr 2025

Customer reviews

Sign in to leave a review. Only people who have the product can review it.

No reviews for this product yet.

Frequently asked questions

  • GPL (General Public License) is the license under which WordPress and most premium plugins/themes are distributed. It grants you the right to use, modify and redistribute the software in as many projects as you want, with no domain restrictions.

  • Yes. With membership you get automatic updates via our GPLClub Updater plugin (installed on your WP, detects new versions and applies them). With individual purchase, you get one year of manual updates from your account.

  • Depends on the plan. Monthly: 3 domains. Semi-annual: 7. Annual and Lifetime: 15. Individual purchase: 1 domain.

  • GPLClub offers its own support for installation, configuration and compatibility. For direct support from the original author (feature requests, product-specific bugs), a license purchased from the author is required.