The FacetWP Time Since Addon is a premium addon for FacetWP that allows you to filter content based on how much time has passed since a specific date, such as "posted within the last 24 hours," "published last week," or "created within the last month." This feature is especially useful for filtering content like blog posts, events, news articles, or products based on time criteria.
Key Features of the FacetWP Time Since Addon:
- Time-Based Filtering: This addon allows you to filter content based on time intervals such as "within the last X hours," "within the last X days," "within the last X weeks," or "within the last X months."
- Flexible Date Range: You can customize the ranges to suit your site’s needs (e.g., “posted in the last 7 days,” “published in the last month,” etc.).
- User-Friendly Interface: The addon presents a user-friendly interface where users can filter content based on time-related parameters, making it easy for visitors to find recent or past content.
- Works with Custom Fields: You can use this addon with any custom fields that store dates (e.g., custom post types, event dates, product launch dates), so it’s flexible for various types of content.
- Supports Multiple Formats: You can customize the format of time intervals (e.g., hours, days, weeks, or months), making it suitable for different use cases like blog posts, product launches, or job postings.
How to Set Up the FacetWP Time Since Addon:
- Install FacetWP and the Time Since Addon:
- Ensure you have FacetWP installed and activated on your WordPress site.
- Purchase and install the FacetWP Time Since Addon from the FacetWP website.
- After installing, activate the addon.
- Create a New Facet with Time Since:
- Go to FacetWP > Facets in your WordPress dashboard.
- Click Add New to create a new facet.
- In the Facet Type dropdown, choose Time Since.
- Set the field to the date field that you want to filter by (e.g., the post's publish date, event start date, or custom date field).
- Configure the Time Since Facet:
- Interval: You can define intervals for how the facet will filter the time. For example:
- Last 24 Hours
- Last 7 Days
- Last 30 Days
- Last 6 Months
- Last Year
- Display Options: You can set how the time intervals will appear (e.g., as a dropdown, checkboxes, or radio buttons).
- Interval: You can define intervals for how the facet will filter the time. For example:
- Add the Facet to Your Elementor Page:
- After creating the Time Since facet, you need to display it on your page.
- Use the FacetWP Shortcode to add the facet (e.g.,
[facetwp facet="time_since"]). - In Elementor, you can use a Text Editor Widget or HTML Widget to insert the shortcode where you want the filter to appear.
- Display Filtered Content:
- You can use FacetWP templates to determine how the filtered content will be displayed (e.g., grid layout, list layout, or custom post type display).
- In Elementor, use the Posts widget or Custom Query feature to display content that matches the selected time filter.
- Customize Styling:
- You can customize the appearance of the Time Since facet using Elementor’s design tools or custom CSS to match the overall look and feel of your website.
- You can also use FacetWP’s settings to adjust the style of the facet display.
Example Use Cases for the FacetWP Time Since Addon:
- Blogging Websites: Allow users to filter blog posts based on when they were published (e.g., "published in the last 7 days," "posted in the last 24 hours").
- Event Websites: Let users filter events based on when they occur or when they were posted (e.g., "upcoming events within the next week," "events posted in the last month").
- News Websites: Users can filter news articles to see only the most recent articles (e.g., "posted in the last 24 hours," "published in the last 30 days").
- E-commerce Sites: Display recently added products by allowing users to filter by "newly added products within the last 7 days," "new arrivals this month," or similar time-related criteria.
- Job Listings: Filter job posts by "posted in the last 3 days," "posted in the last week," or "openings listed within the last 30 days."
