Filter Product by Post Date in WooCommerce

Step 1: Manage Post Date in the Filter Widget Form

  1. Access Filter Settings:
    • Go to Product Filters > Form Manage in your WordPress dashboard.
  2. Show Post Date:
    • In the settings, find the Post Date option.
    • Toggle this option on or off to control whether the Post Date filter appears in the widget.

Step 2: Style/Design/Customize the Post Date Widget

  1. Access Form Style Settings:
    • Go to Product Filters > Form Style in your WordPress dashboard.
  2. Select Post Date from Dropdown:
    • From the Select Attribute dropdown menu, choose the Post Date

Optional Settings

The Optional Settings section allows you to control the appearance, behavior, and ordering of individual filter widgets.

Enable Minimization Option

Controls whether the filter widget can be collapsed.

  • Disabled – Filter always stays expanded
  • Enabled with Arrow – Toggle using an arrow icon
  • Enabled without Arrow – Toggle without showing an icon
  • Initially Minimized – Filter loads in collapsed state

Show in Active / Chips Filter Widget

Displays selected filter terms in the Active Filters or Chips widget for easy visibility and removal.

Show / Hide Widget Title

Controls the visibility of the filter title on the frontend.

  • Show – Display title
  • Hide – Hide title

Widget Title

Set a custom title for the filter widget.

Date Filter Labels

These settings allow you to customize the time-based filter labels displayed to users.

All Time

Set the label for products from all available dates.

Today

Set the label for products added or available today.

This Week

Set the label for products from the current week.

This Month

Set the label for products from the current month.

This Year

Set the label for products from the current year.

Step 3: Save Changes

After customizing the category widget, make sure to click Save to apply your changes.



Step 4: Display the Product Filter on Your Webpage

  1. Insert Filter Shortcode:
    • Visit the page where you want to display the product filter.
    • Add the shortcode plugincy_filters to the desired location (e.g., in a page or widget).
  2. Optional Product Shortcode:
    • If you want to display products alongside the filters, you can also include the shortcode products.
  3. Customize Sidebar or Page:
    • You can add the filter shortcode to a sidebar widget or directly within a page’s content.

Once you have completed these steps, customers will be able to filter products by Post Date on your webpage using the Dynamic AJAX Product Filters plugin. The Post Date Filter allows customers to filter products based on the date they were published.