@raideus raideus released this Jan 25, 2016 · 6 commits to master since this release

Assets 2

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

@raideus raideus released this Aug 22, 2015 · 11 commits to master since this release

Assets 2

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

@raideus raideus released this Jul 22, 2015 · 12 commits to master since this release

Assets 2
  • 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

@raideus raideus released this Jan 15, 2015 · 116 commits to master since this release

Assets 2

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);

@raideus raideus released this Apr 3, 2014 · 125 commits to master since this release

Assets 2

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" >

@raideus raideus released this Dec 16, 2013 · 126 commits to master since this release

Assets 2

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

@raideus raideus released this Nov 25, 2013 · 128 commits to master since this release

Assets 2

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

@raideus raideus released this Oct 21, 2013 · 131 commits to master since this release

Assets 2

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.

@raideus raideus released this Oct 21, 2013 · 137 commits to master since this release

Assets 2

Initial stable release