Skip to content
Merged
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
34 changes: 30 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,39 @@ You can search by Category, Tag, Custom Taxonomy or any combination of these eas

## Setup
- [Designs & Code Blog - Setup Search & Filter](http://www.designsandcode.com/447/wordpress-search-filter-plugin-for-taxonomies/)

## Changelog
### Version 1.0.1

### 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`

### Version 1.0.0
- 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


## License
- Released under the [GPL v2](http://www.gnu.org/licenses/gpl-2.0.html) License
File renamed without changes.
File renamed without changes
21 changes: 21 additions & 0 deletions searchandfilter/admin/style.css → admin/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,25 @@ pre code
{
background-color:#eeeeee;
font-size:12px;
}

.column-info
{
width:65%;
}

.column-options
{
width:15%;
}

pre .keyword
{
color:#dd1144;
}

code.large
{
font-size:12px;
line-height:20px;
}
File renamed without changes.
24 changes: 19 additions & 5 deletions searchandfilter/of-admin.php → of-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,15 @@ function searchandfilter_settings()
echo "<h3>About</h3>";
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 filters to really refine your searches!<br /><br />
You can search by Category, Tag, Custom Taxonomy 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.
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.
</div>';
echo "<h3>Documentation</h3>";
echo '<div class="of-caption">
Advanced documentation and examples has now moved - <a href="http://docs.designsandcode.com/search-filter/" target="_blank">find it on our official Search &amp; Filter Plugin Documentation page</a>.<br /><br />
Please find below documentation to get you started, more examples can be found at the above link.
</div>';

echo "<h3>How To Use</h3>";
echo '<div class="of-caption">
To display Search &amp; Filter all you need to do is a use a shortcode:<br />
Expand All @@ -63,7 +69,7 @@ function searchandfilter_settings()
</div>';


echo "<h3>Variables</h3>";
echo "<h3>Arguments</h3>";

//display table
$ofVarListTable = new OF_Variable_List_Table();
Expand All @@ -77,6 +83,13 @@ function searchandfilter_settings()
$ofTaxListTable->prepare_items();
$ofTaxListTable->display();

echo "<h3>Your Public Post Types</h3>";
echo '<div class="of-caption"><strong>Note:</strong> the <code>attachment</code> post type is not available in this list.</div>';
//Prepare Taxonomy elements
$ofPostTypeTable = new OF_Post_Type_Table();
$ofPostTypeTable->prepare_items();
$ofPostTypeTable->display();

echo "<h3>Styling</h3>";
echo '<div class="of-caption">
Search &amp; Filter uses standard inputs and selects, form elements are contained in an unordered list - styling should be easy. <a href="'.SEARCHANDFILTER_PLUGIN_URL . '/style.css'.'" target="_blank">Please see CSS file for base styles used.</a>
Expand All @@ -102,8 +115,9 @@ function searchandfilter_settings()
echo "<h3>Links</h3>";
echo '<div class="of-caption">
<ul>
<li><a href="http://www.designsandcode.com/447/wordpress-search-filter-plugin-for-taxonomies/" target="_blank">Plugin Tutorial and Support Page</a></li>
<li><a href="http://wordpress.org/plugins/search-filter" target="_blank">Plugin on WordPress.org</a> (waiting for approval)</li>
<li><a href="http://www.designsandcode.com/447/wordpress-search-filter-plugin-for-taxonomies/" target="_blank">Plugin Support Page &amp; Discussion</a></li>
<li><a href="http://docs.designsandcode.com/search-filter/" target="_blank">Plugin Documentation</a></li>
<li><a href="http://wordpress.org/plugins/search-filter" target="_blank">Plugin on WordPress.org</a></li>
<li><a href="https://github.com/rmorse/wp-search-filter" target="_blank">Plugin on Github</a></li>
</ul>
</div>';
Expand Down
Loading