Title: JSON REST API (WP API) Categories and Tags
Author: WizADSL
Published: <strong>17 Settembre 2014</strong>
Last modified: 20 Settembre 2014

---

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/json-rest-api-wp-api-categories-and-
tags.svg)

# JSON REST API (WP API) Categories and Tags

 Di [WizADSL](https://profiles.wordpress.org/wizadsl/)

[Scarica](https://downloads.wordpress.org/plugin/json-rest-api-wp-api-categories-and-tags.1.01.zip)

 * [Dettagli](https://it.wordpress.org/plugins/json-rest-api-wp-api-categories-and-tags/#description)
 * [Recensioni](https://it.wordpress.org/plugins/json-rest-api-wp-api-categories-and-tags/#reviews)
 *  [Installazione](https://it.wordpress.org/plugins/json-rest-api-wp-api-categories-and-tags/#installation)
 * [Sviluppo](https://it.wordpress.org/plugins/json-rest-api-wp-api-categories-and-tags/#developers)

 [Supporto](https://wordpress.org/support/plugin/json-rest-api-wp-api-categories-and-tags/)

## Descrizione

The [JSON REST API (WP API)](https://wordpress.org/plugins/json-rest-api/) as of
version 1.1.1 does not allow you to specify tags or categories
 when createing or
editing posts (it appears this will be added in a later release). This plugin addresses
that problem by allowing categories and tags to be passed in the JSON data when 
creating/editing posts.

An example JSON post that can be made using the [JSON REST API (WP API)](https://wordpress.org/plugins/json-rest-api/)(
described in detail [here](http://wp-api.org/#posts_create-a-post)) to create a 
post in WordPress would be:

    ```
    {"title":"Hello World!","content_raw":"Content","excerpt_raw":"Excerpt"}
    ```

In order to add tags/categories you would add an array called “x-categories” and/
or and array called “x-tags” to the JSON data, for example:

    ```
    {"title":"Hello World!","content_raw":"Content","excerpt_raw":"Excerpt","x-tags":["tag1","tag2"],"x-categories":["General","15"]}
    ```

The example creates a post and assignes the tags “tag1” and “tag2” as well as placing
the post in the category named “General” and category ID 15. The tags do not have
to exist prior to use. Categories must exist prior to use and may be expressed and
either category names or category IDs. The “x-” prefixes were used to avoid any 
conflicts in functionality with the [JSON REST API (WP API)](https://wordpress.org/plugins/json-rest-api/)
plugin.

Because this plugin relies on the JSON parsing functionallity provided by the [JSON REST API (WP API)](https://wordpress.org/plugins/json-rest-api/)
plugin the alternate syntax using a multi-part-form body should also work.

By default the tags/categories specified when editing a post will replace any tags/
categories already assigned to the post. This behavior can be changed so that tags/
categories are appened instead, simply open the `json-rest-api-wp-api-categories-
and-tags` folder in the WordPress plugins folder and edit `json-rest-api-patch.php`.
On
 line 12 of the file is a variable that should be set to `true` in order to have
tags/categories appended instead of replaced.

## Installazione

 1. Upload the `json-rest-api-patch` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## Recensioni

Non ci sono recensioni per questo plugin.

## Contributi e sviluppo

“JSON REST API (WP API) Categories and Tags” è un software open source. Le persone
che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

 *   [ WizADSL ](https://profiles.wordpress.org/wizadsl/)

[Traduci “JSON REST API (WP API) Categories and Tags” nella tua lingua.](https://translate.wordpress.org/projects/wp-plugins/json-rest-api-wp-api-categories-and-tags)

### Ti interessa lo sviluppo?

[Esplora il codice](https://plugins.trac.wordpress.org/browser/json-rest-api-wp-api-categories-and-tags/)
segui il [repository SVN](https://plugins.svn.wordpress.org/json-rest-api-wp-api-categories-and-tags/),
segui il [log delle modifiche](https://plugins.trac.wordpress.org/log/json-rest-api-wp-api-categories-and-tags/)
tramite [RSS](https://plugins.trac.wordpress.org/log/json-rest-api-wp-api-categories-and-tags/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * Initial release

#### 1.01

 * Fixed category id integer check; thanks to trevordevore

## Meta

 *  Versione **1.01**
 *  Ultimo aggiornamento **12 anni fa**
 *  Installazioni attive **30+**
 *  Versione WordPress ** 3.9 o superiore **
 *  Testato fino alla versione **4.0.38**
 *  Lingua
 * [English (US)](https://wordpress.org/plugins/json-rest-api-wp-api-categories-and-tags/)
 * Tag
 * [api](https://it.wordpress.org/plugins/tags/api/)[JSON](https://it.wordpress.org/plugins/tags/json/)
   [patch](https://it.wordpress.org/plugins/tags/patch/)[rest](https://it.wordpress.org/plugins/tags/rest/)
   [rest-api](https://it.wordpress.org/plugins/tags/rest-api/)
 *  [Visualizzazione avanzata](https://it.wordpress.org/plugins/json-rest-api-wp-api-categories-and-tags/advanced/)

## Valutazioni

 5 su 5 stelle.

 *  [  2 recensioni a 5-stelle     ](https://wordpress.org/support/plugin/json-rest-api-wp-api-categories-and-tags/reviews/?filter=5)
 *  [  0 recensioni a 4-stelle     ](https://wordpress.org/support/plugin/json-rest-api-wp-api-categories-and-tags/reviews/?filter=4)
 *  [  0 recensioni a 3-stelle     ](https://wordpress.org/support/plugin/json-rest-api-wp-api-categories-and-tags/reviews/?filter=3)
 *  [  0 recensioni a 2-stelle     ](https://wordpress.org/support/plugin/json-rest-api-wp-api-categories-and-tags/reviews/?filter=2)
 *  [  0 recensioni a 1-stelle     ](https://wordpress.org/support/plugin/json-rest-api-wp-api-categories-and-tags/reviews/?filter=1)

[La tua recensione](https://wordpress.org/support/plugin/json-rest-api-wp-api-categories-and-tags/reviews/#new-post)

[Vedi tutte le recensioni](https://wordpress.org/support/plugin/json-rest-api-wp-api-categories-and-tags/reviews/)

## Collaboratori

 *   [ WizADSL ](https://profiles.wordpress.org/wizadsl/)

## Supporto

Hai qualcosa da dire? Ti serve aiuto?

 [Chiedi nel forum di supporto](https://wordpress.org/support/plugin/json-rest-api-wp-api-categories-and-tags/)

## Dona

Vuoi supportare lo sviluppo di questo plugin?

 [ Fai una donazione per questo plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=58CC2KYQR64XW)