[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, order-group, range, range-group or taxonomy
id integer|string Value of HTML id attribute. If this value is integer, the filter id will be autogenerated.
class string Custom CSS class.
size integer Size for the grid system. Similar to bootstrap, you can define a size between 12 (full width) to 1
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.
show_toggle yes|no Toggle visibility of the filter toggle.
auto_trigger yes|no Setting auto_trigger=”yes” will apply the filter automatically when user interacts with it.

 

[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, reset 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, excerpt and/or author
by_word yes|no Setting by_word=”yes” will apply the terms of this filter separately.

 

[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.

To continue reading you need to renew your license of EDD Ajax Filters