[edd_ajax_filter]

The [edd_ajax_filter] shortcode is a flexible and powerfull way to output any filter from EDD Ajax Filters. It has a large number of accepted parameters as well as some parameters are based on value of filter parameter. So this part of the documentation will be divided into sections to each filter type.

Common parameters:

Parameter Values Description
filter string Filter type.Accepted values: button, input, options, order or taxonomy
label string Label for the filter field.
show_label yes|no Toggle visibility of the filter label.
operator OR|AND Operator to use by the filter engine when this filter is applied. AND is more restrictive than OR.

 

[edd_ajax_filter filter="button"]

Accepted parameters:

Parameter Values Description
type string Filter output type.Accepted values: button or block
action string Action the button will do.Accepted values: submit or order
text string Text of the button.

 

[edd_ajax_filter filter="input"]

Accepted parameters:

Parameter Values Description
type string Filter output type.Accepted values: text or textarea
field string Fields where filter will be applied (this field supports multiple fields separated by comma).Accepted values: title, content and/or excerpt

 

[edd_ajax_filter filter="options"]

Accepted parameters:

Parameter Values Description
type string Filter output type.Accepted values: select, block or list
field string Field where filter will be applied.
options string JSON enconded array of options using keys as values.Example: options=”{{“0″:”All”},{“1″:”Option 1″}}”
multiple yes|no Set if this filter supports multiple options selected. If type is set to block or list, this parameter changes the inputs type from checkbox (multipe=”yes”) to radio (multiple=”no”).
inline yes|no If type is set to block or list, setting inline=”yes” will output each option inline.
hide_inputs yes|no If type is set to block or list, setting hide_inputs=”yes” will hide all inputs of the list of options.

 

[edd_ajax_filter filter="order"]

This filter inherits from the button filter, so you can use the same paramaters and this specific ones:

Parameter Values Description
field string Field where filter will be applied.Accepted values: title, date, price, sales or comments
direction ASC|DESC Direction to sort. ASC for ascending and DESC for descending.

 

[edd_ajax_filter filter="taxonomy"]

This filter inherits from the options filter and automatically loads the taxonomy you define as options, so you can use the same paramaters and this specific ones:

Parameter Values Description
field string Field where filter will be applied.Accepted values: category or tag
show_option_all yes|no Setting show_option_all=”yes” will add an option to filter to all options.
hierarchical yes|no Setting hierarchical=”yes” will output all options in stepped levels based on their hierarchy.
order_by string Field to sort the options.Accepted values: name, id, slug, count or term_group
order ASC|DESC Direction to sort the options. ASC for ascending and DESC for descending.
hide_children yes|no Setting hide_children=”yes” will hide all terms that are children of other ones.
hide_empty yes|no Setting hide_empty=”yes” will hide all terms that have not assigned to any download.
show_count yes|no Setting show_count=”yes” will show a count of downloads that have assigned this term.