Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to version 1.2.9 #38

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 93 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Created by .ignore support plugin (hsz.mobi)
### VisualStudioCode template
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
### Example user template template
### Example user template

# IntelliJ project files
.idea
*.iml
out
gen### Example user template template
### Example user template

# IntelliJ project files
.idea
*.iml
out
gen### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff:
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries

# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.xml
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml

# Gradle:
.idea/**/gradle.xml
.idea/**/libraries

# Mongo Explorer plugin:
.idea/**/mongoSettings.xml

## File-based project format:
*.iws

## Plugin-specific files:

# IntelliJ
/out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
### macOS template
*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

86 changes: 86 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
CHANGELOG
=========

All notable changes to this project will be documented in this file.


### [Unreleased]
- Better translation support
- Add option permalink: no permalink on taxonomy filtering
- Add support meta: support to render and filter postmeta



### 1.2.5
- Fixed a PHP error when setting defaults for taxonomies - many users did not see this but resulted in unexpected behaviour
- Fixed an error with post date sometimes being undefined for blank searches
- Added argument `empty_search_url` - when a users submits the search form without any search preferences selected they will be redirected to this URL
- Updated argument `add_search_param` - setting to `1` will force add a "?s=" to all urls generated by the plugin - this may help with the loading of search templates in some themes


### 1.2.4
- Fixed a bug created in 1.2.3 when doing an empty search

### 1.2.3
- Added arguement `all_items_labels` which allows for support for custom `all_items` labels in taxonomies, categories, post tags and post types when using `select` and `radio` types - the default text displaying "All Categories" for example can now be defined using `all_items_labels`
- Added `show_count` to arguments - this shows how many posts are in a particular term, in brackets after the term name - works only for categories, tags and taxonomies
- Fixed a bug when using when using "all post types" and it displaying no results
- Reverted behaviour from 1.2.2 - no longer force load search template when search is blank - let WP handle it again
- Added argument `add_search_param` - setting it to `1` will force a "?s=" or "&s=" to be added to the url even when the search is blank - in some circumstances this will force load the search template, instead of other WP templates, such as taxonomy or category templates

### 1.2.2
- Added support for multi selects - use `multiselect` as the type for your field
- Added support for AND & OR operators when using checkboxes or multiselects - use the `operators` argument with allowed values of `and` & `or`
- Force load search template when search is blank, don't include when search field is not included in shortcode
- Fixed an issue with navigation disappearing when using post_types

### 1.2.1
- Version Bump - bad commit

### 1.2.0
- WARNING - this update includes some major changes to shortcode construction, do not upgrade until you have read how this will affect your setup - updating should be easy.
- Renamed the `taxonomies` argument to `fields` - `taxonomies` is now no longer appropriate as this list contains field types other than taxonomies - this list now contains taxonomies, `post_type`, `post_date` and `search` - `taxonomies` as an argument is still supported however will be deprecated
- Search box can now be positioned anywhere, simply include `search` in the fields list in the position desired. Upgrading from previous versions will cause you to lose your search box, simply include `search` in the fields list to show it again
- Drop support for `search` argument as no longer relevant - control display of search input by adding it to the `fields` list
- Labels have been completely rewritten - `label` has been renamed to `headings` to avoid confusion with internal taxonomy labels - the `headings` argument now allows for any text to be added and displayed as a heading for each field - this allows for much more flexibility and no longer uses internal taxonomy labels - to hide a label simply leave blank
- Added support for hierarchical taxonomies for all input types - checkbox, radio & select
- Added support for ordering of taxonomies - use `order_by` argument - allowed values are `id`, `name`, `slug`, `count`, `term_group`
- Added support for ordering direction of taxonomies - use `order_dir` argument - allowed values are 'asc' or 'desc'
- Added support to show or hide empty taxonomies - use `hide_empty` argument
- Added support for `search_placeholder`
- Updated `post_date` functionality to work with older versions of WP - can be displayed either as `date` or `daterange` - the `post_date` field uses the HTML 5 input type of `date` - browsers that do not support it will simply show a text box - a tutorial of integrating jquery for graceful degredation is in the works
- Renamed `submitlabel` to `submit_label` - `submitlabel` still works for now.
- Renamed `type` to `types` - `type` still works for now.
- Updated display of checkboxes and radio buttons, inputs are now wrapped in an unordered list which may affect your styling
- Various bug fixes
- Thanks to `bradaric` for help with hierarchical dropdown lists and date input types - https://github.com/bradaric

### 1.1.3
- Added support for `post_date` to be displayed either as `date` or `daterange` (WP 3.7+) type.

### 1.1.2
- Added support for all public and custom post types (the attachment post type is excluded) - all post types can be user searchable or predfined and hidden from the user. This allows for users to add multiple search widgets to their site which work on specific post types independantly from eachother.
- Added offical updated documentation, created and moved to Search & Filter Docs

### 1.1.1
- Fixed: when submitting an empty `search/filter`, `"?s="` now gets appended to the url (an empty search) to force load a results page, previously this was redirecting to the homepage which does not work for many use cases

### 1.1.0
- Added support for checkboxes and radio buttons, with the option to control this for each individual taxonomy.
- Added support to show or hide headings for each individual taxonomy.
- Added support to pass a class name through to Search & Filter widgets, this allows styling of different instances of Search & Filter
- Fixed problems with escaping output in search box
Notice: This update will automatically add headings to taxonomy dropdowns, refer to usage and examples on how to disable them.

### 1.0.3
- Added some documention & screenshots to plugin page

### 1.0.2
- Version bump for WordPress plugins site

### 1.0.1
- Updated to use `label->all_items` in taxonomy object for dropdowns before using `label->name`
- Notice: This update may cause some labels to break, ensure you have set up your taxonomy properly including setting `label->all_items`

### 1.0.0
- Initial Release
75 changes: 1 addition & 74 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,80 +15,7 @@ You can search by Category, Tag, Custom Taxonomy or any combination of these eas

## Changelog

### 1.2.5
- Fixed a PHP error when setting defaults for taxonomies - many users did not see this but resulted in unexpected behaviour
- Fixed an error with post date sometimes being undefined for blank searches
- Added argument `empty_search_url` - when a users submits the search form without any search preferences selected they will be redirected to this URL
- Updated argument `add_search_param` - setting to `1` will force add a "?s=" to all urls generated by the plugin - this may help with the loading of search templates in some themes


### 1.2.4
- Fixed a bug created in 1.2.3 when doing an empty search

### 1.2.3
- Added arguement `all_items_labels` which allows for support for custom `all_items` labels in taxonomies, categories, post tags and post types when using `select` and `radio` types - the default text displaying "All Categories" for example can now be defined using `all_items_labels`
- Added `show_count` to arguments - this shows how many posts are in a particular term, in brackets after the term name - works only for categories, tags and taxonomies
- Fixed a bug when using when using "all post types" and it displaying no results
- Reverted behaviour from 1.2.2 - no longer force load search template when search is blank - let WP handle it again
- Added argument `add_search_param` - setting it to `1` will force a "?s=" or "&s=" to be added to the url even when the search is blank - in some circumstances this will force load the search template, instead of other WP templates, such as taxonomy or category templates

### 1.2.2
- Added support for multi selects - use `multiselect` as the type for your field
- Added support for AND & OR operators when using checkboxes or multiselects - use the `operators` argument with allowed values of `and` & `or`
- Force load search template when search is blank, don't include when search field is not included in shortcode
- Fixed an issue with navigation disappearing when using post_types

### 1.2.1
- Version Bump - bad commit

### 1.2.0
- WARNING - this update includes some major changes to shortcode construction, do not upgrade until you have read how this will affect your setup - updating should be easy.
- Renamed the `taxonomies` argument to `fields` - `taxonomies` is now no longer appropriate as this list contains field types other than taxonomies - this list now contains taxonomies, `post_type`, `post_date` and `search` - `taxonomies` as an argument is still supported however will be deprecated
- Search box can now be positioned anywhere, simply include `search` in the fields list in the position desired. Upgrading from previous versions will cause you to lose your search box, simply include `search` in the fields list to show it again
- Drop support for `search` argument as no longer relevant - control display of search input by adding it to the `fields` list
- Labels have been completely rewritten - `label` has been renamed to `headings` to avoid confusion with internal taxonomy labels - the `headings` argument now allows for any text to be added and displayed as a heading for each field - this allows for much more flexibility and no longer uses internal taxonomy labels - to hide a label simply leave blank
- Added support for hierarchical taxonomies for all input types - checkbox, radio & select
- Added support for ordering of taxonomies - use `order_by` argument - allowed values are `id`, `name`, `slug`, `count`, `term_group`
- Added support for ordering direction of taxonomies - use `order_dir` argument - allowed values are 'asc' or 'desc'
- Added support to show or hide empty taxonomies - use `hide_empty` argument
- Added support for `search_placeholder`
- Updated `post_date` functionality to work with older versions of WP - can be displayed either as `date` or `daterange` - the `post_date` field uses the HTML 5 input type of `date` - browsers that do not support it will simply show a text box - a tutorial of integrating jquery for graceful degredation is in the works
- Renamed `submitlabel` to `submit_label` - `submitlabel` still works for now.
- Renamed `type` to `types` - `type` still works for now.
- Updated display of checkboxes and radio buttons, inputs are now wrapped in an unordered list which may affect your styling
- Various bug fixes
- Thanks to `bradaric` for help with hierarchical dropdown lists and date input types - https://github.com/bradaric

### 1.1.3
- Added support for `post_date` to be displayed either as `date` or `daterange` (WP 3.7+) type.

### 1.1.2
- Added support for all public and custom post types (the attachment post type is excluded) - all post types can be user searchable or predfined and hidden from the user. This allows for users to add multiple search widgets to their site which work on specific post types independantly from eachother.
- Added offical updated documentation, created and moved to Search & Filter Docs

### 1.1.1
- Fixed: when submitting an empty `search/filter`, `"?s="` now gets appended to the url (an empty search) to force load a results page, previously this was redirecting to the homepage which does not work for many use cases

### 1.1.0
- Added support for checkboxes and radio buttons, with the option to control this for each individual taxonomy.
- Added support to show or hide headings for each individual taxonomy.
- Added support to pass a class name through to Search & Filter widgets, this allows styling of different instances of Search & Filter
- Fixed problems with escaping output in search box
Notice: This update will automatically add headings to taxonomy dropdowns, refer to usage and examples on how to disable them.

### 1.0.3
- Added some documention & screenshots to plugin page

### 1.0.2
- Version bump for WordPress plugins site

### 1.0.1
- Updated to use `label->all_items` in taxonomy object for dropdowns before using `label->name`
- Notice: This update may cause some labels to break, ensure you have set up your taxonomy properly including setting `label->all_items`

### 1.0.0
- Initial Release

see [CHANGELOG.md](CHANGELOG.md)

## License
- Released under the [GPL v2](http://www.gnu.org/licenses/gpl-2.0.html) License
6 changes: 3 additions & 3 deletions of-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function searchandfilter_settings()
echo '<div class="of-caption">
Search &amp; Filter is a simple search and filtering plugin for Wordpress brought to you by <a href="http://www.designsandcode.com" target="_blank">Designs &amp; Code</a>.<br /><br />
It is essentially an advancement of the WordPress search box, adding taxonomy and post type filters to really refine your searches.<br /><br />
You can search by Category, Tag, Custom Taxonomy, Post Type or any combination of these easily - you can even remove the search box and simply use it as a filtering system for your posts and pages. Taxonomies and Post Types can be displayed as dropdown selects, checkboxes or radio buttons.
You can search by Category, Tag, Custom Taxonomy, Post Type or any combination of these easily - you can even remove the search box and simply use it as a filtering system for your posts and pages. Taxonomies and Post Types can be displayed as dropdown selects, checkboxes, radio buttons or multiselects.
</div>';
echo "<h3>Documentation</h3>";
echo '<div class="of-caption">
Expand All @@ -63,7 +63,7 @@ function searchandfilter_settings()

This will display a search box, a category dropdown and a tag dropdown. You can use the shortcode within posts/pages and widget areas.<br /><br />

To use this within a theme file you simple need to call the `do_shortcode` function with the shortcode above within the theme file:<br />
To use this within a theme file you simple need to call the `do_shorcode` function with the shortcode above within the theme file:<br />

<pre><code class="php">&lt;?php echo do_shortcode( \'[searchandfilter taxonomies="category,post_tag"]\' ); ?&gt;</code></pre>
</div>';
Expand Down Expand Up @@ -161,4 +161,4 @@ function searchandfilter_plugin_action_links($links, $file)
return $links;
}

?>
?>
2 changes: 1 addition & 1 deletion of-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function __construct()
"ID" => $counter,
"name" => "types",
"defaultval" => "<code class='string large'>select</code>",
"options" => "<em>Comma seperated list of any of the types found below:</em><br /><br />select<br />checkbox<br />radio<br /><br />
"options" => "<em>Comma seperated list of any of the types found below:</em><br /><br />select<br />checkbox<br />radio<br />multiselect<br /><br />
<em>These types should only be used when the field is `post_date`:</em><br /><br />date<br />daterange",
"info" => "The order of values in this comma seperated list needs to match the fields list."
);
Expand Down
Loading