Title: Search Widget and WP REST Server for Toolset Types
Author: Magenta Cuda
Published: <strong>2 Novembre 2013</strong>
Last modified: 10 Novembre 2016

---

Ricerca i plugin

Questo plugin **non è stato testato con le ultime 3 versioni principali (major releases)
di WordPress**. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare
problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

![](https://s.w.org/plugins/geopattern-icon/search-types-custom-fields-widget.svg)

# Search Widget and WP REST Server for Toolset Types

 Di [Magenta Cuda](https://profiles.wordpress.org/magenta-cuda/)

[Scarica](https://downloads.wordpress.org/plugin/search-types-custom-fields-widget.2.2.1.zip)

 * [Dettagli](https://it.wordpress.org/plugins/search-types-custom-fields-widget/#description)
 * [Recensioni](https://it.wordpress.org/plugins/search-types-custom-fields-widget/#reviews)
 * [Sviluppo](https://it.wordpress.org/plugins/search-types-custom-fields-widget/#developers)

 [Supporto](https://wordpress.org/support/plugin/search-types-custom-fields-widget/)

## Descrizione

This [search widget](http://alttypes.wordpress.com/search-types-custom-fields-widget/)
can search [Toolset Types](https://wordpress.org/plugins/types/) custom posts by
the value of Toolset Types custom fields, custom taxonomies and parent/child relationships.
It is designed to be used with the Toolset Types plugin and makes use of Toolset
Types’ proprietary database format to generate user friendly field names and field
values. The widget uses user friendly substitutions for the actual values in the
database, e.g. post title is substituted for post id in parent/child fields. The
selected posts can be displayed as a standard WordPress list of posts, a spreadsheet
of posts with their custom fields or a gallery of featured images.

Version 1.3 supports a [single-page application mode](https://alttypes.wordpress.com/#spa)
where the search results returned by an interactive AJAX request populates a [Backbone.js](http://backbonejs.org/)
collection of models which can be rendered in the same page using [Underscore.js](http://underscorejs.org/#template)
templates and the [Bootstrap](http://getbootstrap.com/) framework.
 You can view
a working sample page using this plugin in single-page application mode at [my portfolio website](http://magentacuda.com/demo-of-search-widget-and-wp-rest-server-for-toolset-types/).

[Version 2.0](https://alttypes.wordpress.com/#rest-api) implements an experimental
[WP REST API](http://v2.wp-api.org/) server for Toolset Types custom post types 
and custom fields.

Please visit the [online documentation](http://alttypes.wordpress.com/search-types-custom-fields-widget/)
for more details. **This plugin works with Toolset Types 2.2.2 and requires at least
PHP 5.4.** [This plugin is not compatible with the WordPress Multilingual Plugin by OnTheGoSystems.](https://wordpress.org/support/topic/incompatibility-between-my-plugin-and-wpml-multilingual)

## Screenshot

 * [[
 * The “Search Widget” interactively loads the “Search Results Pane”.

## FAQ

  Installation Instructions

 1. Upload the folder “search-types-custom-fields-widget” to the “/wp-content/plugins/”
    directory.
 2. Activate the plugin through the “Plugins” menu in WordPress.
 3. Activate this widget by dragging it to a sidebar through the “Appearance->Widgets”
    menu in WordPress.

  Does this plugin require that Types plugin to be installed?

Yes.

  Where is the documentation?

http://alttypes.wordpress.com/search-types-custom-fields-widget/

  How to use the REST Server?

To activate the REST server install and activate the [WordPress REST API v2 plugin](https://wordpress.org/plugins/rest-api/).
Beware this requires pretty permalinks.
 The search widget currently uses an older
proprietary AJAX API and does not use the REST server and does not need the WordPress
REST API plugin to be installed. The REST server is experimental and the API is 
subject to change. Please read the [documentation](https://alttypes.wordpress.com/#rest-api).

## Recensioni

Non ci sono recensioni per questo plugin.

## Contributi e sviluppo

“Search Widget and WP REST Server for Toolset Types” è un software open source. 
Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di
seguito.

Collaboratori

 *   [ Magenta Cuda ](https://profiles.wordpress.org/magenta-cuda/)

[Traduci “Search Widget and WP REST Server for Toolset Types” nella tua lingua.](https://translate.wordpress.org/projects/wp-plugins/search-types-custom-fields-widget)

### Ti interessa lo sviluppo?

[Esplora il codice](https://plugins.trac.wordpress.org/browser/search-types-custom-fields-widget/)
segui il [repository SVN](https://plugins.svn.wordpress.org/search-types-custom-fields-widget/),
segui il [log delle modifiche](https://plugins.trac.wordpress.org/log/search-types-custom-fields-widget/)
tramite [RSS](https://plugins.trac.wordpress.org/log/search-types-custom-fields-widget/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.2.1

 * added automatic generation of user templates
 * fix HTML validation errors

#### 2.2

 * added support for a JavaScript/Backbone client
 * enhanced the REST search by taxonomy, child-of and parent-of to accept both ids
   and titles

#### 2.1

 * added support for select, radio and checkbox Toolset Types custom fields to REST
   API
 * replaced term id with term name or slug for taxonomy fields in REST API
 * fix bug where search widget tries to use previously deleted custom post type

#### 2.0

 * implements a [WP REST API server](https://alttypes.wordpress.com/#rest-api).
 * much better support for user templates.
 * bug fixes and css tweaks.

#### 1.3.1

 * fix a security hole
 * support for preloading the search results pane
 * improved carousel
 * tweaks to the user interface

#### 1.3

 * supports dynamically loading via AJAX the search results into the current page
   instead of loading a new page, i.e. supports the single-page application paradigm.
 * replace ugly full viewport carousel view with an inline embedded carousel view
 * add mobile swipe to carousel view
 * bug fixes and css enhancements

#### 1.2.0.1

 * fix broken widget admin interface

#### 1.2

 * Added option to show the search results using a responsive Twitter Bootstrap 
   stylesheet.

#### 1.1.1.1

 * update the .pot file

#### 1.1.1

 * Make the Backbone.js mode gallery responsive.

#### 1.1

 * Add facility for invoking a function after a Backbone.js template has been rendered–
   usful for attaching event listeners on the rendered elements.
 * Added the popup feature of the classic mode gallery to the new backbone mode 
   gallery.

#### 1.0

 * The front-end re-written as a single-page web application using a Backbone.js
   Model-View-Presenter – you can select either classic mode or backbone mode.
 * You can specify your own Underscore.js template to customize the displayed results–
   see stcfw-search-results-template.php.

#### 0.5.1

 * The gallery of featured thumbnail images supports mouse-over popups implemented
   by a Backbone.js view using a optionally user supplied Underscore.js template.

#### 0.5

 * the search results can optionally be displayed as a gallery of featured images
   of the selected posts. The featured images have a clickable link back to their
   posts.

#### 0.4.9

 * added a filter "stcfw_display_value" for field values; the filter allows you 
   to translate the raw field value before it is displayed

#### 0.4.8

 * Added localization – use _e() and __(), provide .pot file.
 * Code rewritten to improve software quality.
 * Tested up to WordPress 4.3 Release Candidate (4.3-RC2-33585).

#### 0.4.7.1.1

 * fix javascript bug

#### 0.4.7.1

 * fix bug where javascript handlers were not always installed when widget was dynamically
   inserted or replaced in administrator’s widget page
 * use auto generated excerpt if no user supplied excerpt
 * replace taxonomy slug with name
 * use simplified labels for checkbox values in search result table
 * tested up to WordPress 4.3 Release Candidate (4.3-RC1-33519)

#### 0.4.7

 * code rewritten to fix bugs, enhance security and improve software quality
 * added option to use simplified labels for select, checkboxes and radio button
   values
 * replaced field slug with field title
 * changed some css to prettify things

#### 0.4.6.1.3

 * another fix for the problem with custom field of type ‘Checkboxes’ with version
   1.6.3 of Types

#### 0.4.6.1.2

 * fix problem with custom field of type ‘Checkboxes’ with version 1.6.3 of Types

#### 0.4.6.1.1

 * no new features; some small enhancements, bug fixes and code maintenance
 * taxonomy items are no longer required to come before other items in the sort 
   order
 * it is now possible to choose to display post content in the table of posts which
   will actually display the post excerpt
 * administrator’s interface is now stylable using a .css file

#### 0.4.6.1

 * fixed search by tags by input box bug
 * added style sheet for search widget

#### 0.4.6

 * added support for sortable tables for search results.

#### 0.4.5.3

 * added search by post author
 * added support for post type specific css files
 * fix pagination bug
 * fix several other bugs

#### 0.4.5

 * optionally display seach results in a table format
 * optionally set query type to is_search so only excerpts are displayed for applicable
   themes
 * supports drag and drop to change order of fields

#### 0.4.4

 * added range search for numeric and date custom fields

#### 0.4.3

 * separated child of/parent of categories by post type
 * made items shown per custom field user settable
 * fixed to handle corrupt obsolete data without crashing
 * fixed incorrect counts due to double counting and counting blank and null values
 * tweaked the display of checkboxes, select and radio custom fields

#### 0.4.2

 * add support for selecting and/or on search conditions

#### 0.4.1.1

 * Initial release.

## Meta

 *  Versione **2.2.1**
 *  Ultimo aggiornamento **10 anni fa**
 *  Installazioni attive **10+**
 *  Versione WordPress ** 3.6 o superiore **
 *  Testato fino alla versione **4.6.30**
 *  Lingua
 * [English (US)](https://wordpress.org/plugins/search-types-custom-fields-widget/)
 * Tag
 * [custom fields](https://it.wordpress.org/plugins/tags/custom-fields/)[search](https://it.wordpress.org/plugins/tags/search/)
 *  [Visualizzazione avanzata](https://it.wordpress.org/plugins/search-types-custom-fields-widget/advanced/)

## Valutazioni

 1 su 5 stelle.

 *  [  0 recensioni a 5-stelle     ](https://wordpress.org/support/plugin/search-types-custom-fields-widget/reviews/?filter=5)
 *  [  0 recensioni a 4-stelle     ](https://wordpress.org/support/plugin/search-types-custom-fields-widget/reviews/?filter=4)
 *  [  0 recensioni a 3-stelle     ](https://wordpress.org/support/plugin/search-types-custom-fields-widget/reviews/?filter=3)
 *  [  0 recensioni a 2-stelle     ](https://wordpress.org/support/plugin/search-types-custom-fields-widget/reviews/?filter=2)
 *  [  1 1- recensioni a stelle     ](https://wordpress.org/support/plugin/search-types-custom-fields-widget/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/search-types-custom-fields-widget/reviews/#new-post)

[Vedi tutte le recensioni](https://wordpress.org/support/plugin/search-types-custom-fields-widget/reviews/)

## Collaboratori

 *   [ Magenta Cuda ](https://profiles.wordpress.org/magenta-cuda/)

## Supporto

Hai qualcosa da dire? Ti serve aiuto?

 [Chiedi nel forum di supporto](https://wordpress.org/support/plugin/search-types-custom-fields-widget/)