HUSKY - Products Filter Professional for WooCommerce

ACF

From v.3.3.3

允许在 HUSKY 过滤器结构中自动显示 ACF 中创建并附加到“product”帖子类型的元字段。适用于 ACF 类型:“select”、“radio”、“true_false”

Data should me set on the products to let this filter-sections be visible on the shop filter.

  • 在 ACF 面板中创建元字段
  • 在过滤器结构中启用
  • 为产品设置元数据
  • 在商店前端进行过滤!

也可以按 ACF 日期字段进行过滤,但由于这与 UNIX 时间戳不兼容,因此您需要通过挂钩“woof_meta_use_acf_dateformat‘ 在您当前的 WordPress 主题文件 functions.php 中

add_filter('woof_meta_use_acf_dateformat', function($is){
    return true;
});

激活后,只能正确过滤 ACF 日期元字段,而不是 UNIX 时间戳日期选择器。