powerbuoy/sleek-archive-filter

Adds the ability to filter posts in an archive using GET params.

v2.2.0 2020-12-18 13:51 UTC

This package is auto-updated.

Last update: 2024-03-18 20:57:58 UTC


README

Packagist GitHub license GitHub issues GitHub forks GitHub stars

Adds the ability to filter posts in an archive using GET params:

  • ?sleek_filter_tax_{taxonomy_name}[]={term_id}
    Show only posts belonging to {term_id} in {taxonomy_name}.
  • ?sleek_filter_meta_min_{meta_field_name}[]={value}
    Show only posts whose (numeric) {meta_field_name} is a minimum of {value}.
  • ?sleek_filter_meta_max_{meta_field_name}[]={value}
    Show only posts whose (numeric) {meta_field_name} is a maximum of {value}.
  • ?sleek_filter_meta_{meta_field_name}[]={value}
    Show only posts whose {meta_field_name} is exactly {value}.

Theme Support

sleek/archive_filter

Enable the above.

Hooks

N/A

Functions

N/A

Classes

N/A