| 开发者 |
DesignsAndCode
codeamp |
|---|---|
| 更新时间 | 2025年9月22日 23:37 |
| PHP版本: | 3.5 及以上 |
| WordPress版本: | 6.8 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
search-filter folder to the /wp-content/plugins/ directory.Search & Filter menu in your Wordpress admin panel.You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team helps validate, triage and handle any security vulnerabilities. Report a security vulnerability.
The documentation has been updated to include examples almost all configurable options with screenshots - please refer to the Search & Filter Docs.
get_header()<option> element self closing in the multiselect field (thanks @matzeatweb)multiselect field typeempty_search_url - when a users submits the search form without any search preferences selected they will be redirected to this URLadd_search_param - setting to 1 will force add a "?s=" to all urls generate by the plugin - this may help with the loading of search templates in some themesall_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_labelsshow_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 taxonomiesadd_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 templatesmultiselect as the type for your fieldoperators argument with allowed values of and & ortaxonomies 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 deprecatedsearch 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 againsearch argument as no longer relevant - control display of search input by adding it to the fields listlabel 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 blankorder_by argument - allowed values are id, name, slug, count, term_grouporder_dir argument - allowed values are 'asc' or 'desc'hide_empty argumentsearch_placeholderpost_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 workssubmitlabel to submit_label - submitlabel still works for now.type to types - type still works for now.bradaric for help with hierarchical dropdown lists and date input types - https://github.com/bradaricdate or daterange (WP 3.7+) typeattachment 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.label->all_items in taxonomy object for dropdowns before using label->namelabel->all_items