Skip to content

Releases: raideus/wp-advanced-search

v1.4.3

25 Jan 20:26
Compare
Choose a tag to compare

Various bug fixes for issues: #173, #199, #206

v1.4.2

22 Aug 16:13
Compare
Choose a tag to compare

Bugfix: Fixed issue where 'terms' and 'authors' field parameters did not work.

v1.4.1

22 Jul 01:55
Compare
Choose a tag to compare
  • Fixed issue with loading custom AJAX templates
  • Added informative error message to debug output when AJAX results template cannot be found
  • Fixed issue with javascript 404 error when plugin is installed inside of a child theme
  • Renamed WPAS_PATH constant to WPAS_URI, to avoid confusion

v1.4

06 Jul 03:41
Compare
Choose a tag to compare

v1.3

15 Jan 00:16
Compare
Choose a tag to compare

Support for nested categories and taxonomies
Taxonomies which use nested hierarchies (i.e. parent/child terms) can now be displayed hierarchically by adding the option:

'nested' => true

to the field's configuration settings. This option is only supported for the 'taxonomy' field type, and only works with select, multi-select, checkbox, and radio formats.

In select fields the nesting will be shown using dashes '-', while checkboxes and radio buttons will be displayed using nested <ul> groups.

NOTE: This feature only works if you do not supply a custom 'values' array for the field, i.e. you must show all terms by default. But you can still use the 'exclude' option to hide certain terms if you need to. Excluding a term from the list will exclude that term AND all of its children when nesting is enabled.

Support for HTML5 field elements
Form fields can now use a variety of HTML5 field formats such as 'number', 'url', 'email', etc. You can set these formats in your fields' configuration array, like so:

'format' => 'number'

Support for including custom HTML before and after individual fields
It is now possible to include custom HTML before and after any individual form field, using the new options 'pre_html' and 'post_html':

'pre_html' => '<h2>Some html before my field</h2>',
'post_html => '<span>Some custom html after my field</span>'

Ability to disable wrapper <div>'s on fields
Every form field generated by WPAS is wrapped in a <div> element by default. This can now be disabled by setting the following constant:

define('WPAS_DISABLE_WRAPPERS', true);

v1.2

03 Apr 03:00
Compare
Choose a tag to compare

Added support for adding data attributes to form fields. Many JavaScript plugins now rely on the use of such attributes so it seemed like a sensible feature to add. Thanks to @littlbr for the suggestion.

Attributes can be added to any text or select field by using the new 'attributes' parameter as follows:

$args['fields'][] = array('type' => 'search',
                          'label' => 'Search',
                          'format' => 'text',
                          'attributes' => array('data-src' => 12345, 'data-color' => 'red') );

This example will generate HTML for a search field that looks something like this:

<input type="text" data-src="12345" data-color="red" class="wpas-text" name="search_query" >

v1.1.2

16 Dec 15:05
Compare
Choose a tag to compare

Fixed bug where entering a custom 'post_status' into the wp_query arguments caused date fields to return no results.

v1.1.1

25 Nov 20:11
Compare
Choose a tag to compare

Added support for adding custom CSS classes to form fields through the use of the new 'class' parameter. See documentation here.

Fixed bug with 'id' parameter when used on non-generic field types. The 'id' parameter can now be used on all fields to set a custom id attribute. This may be useful for implementing custom styling or JavaScript.

Fixed bug with 'default' parameter

v1.1

21 Oct 22:27
Compare
Choose a tag to compare

Version 1.1 adds support for 3 new field parameters:

allow_null
If set to true, this parameter sets the first option of a select field to a null (blank) value.

default_all
Used to pre-select all of a field’s options by default. This parameter may only be used with checkbox & multi-select fields.

exclude
This parameter allows you to exclude specific options from select, multi-select, checkbox and radio button fields. This is useful if you need to exclude certain option(s) from a field that generates its options automatically (such as a taxonomy field).

///

Thanks to Braunson for contributing to the addition of "default_all" and "exclude" features.

v1.0

21 Oct 21:49
Compare
Choose a tag to compare

Initial stable release