Title: Select one variable
Last modified: August 22, 2016

---

# Select one variable

 *  Resolved [elenis r.](https://wordpress.org/support/users/elenis1517/)
 * (@elenis1517)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/select-one-variable/)
 * Thank you for your great plugin!
    I am completely novice about json etc. I have
   this code
 *     ```
       [jsoncontentimporter url="http://example"]
       {tipo} {numero}
       [/jsoncontentimporter]
       ```
   
 * but I would like to display the {numero} for one value of {tipo} e.g. tipo=garbage.
   
   how can I do that?
 * thanks a lot!
 * [https://wordpress.org/plugins/json-content-importer/](https://wordpress.org/plugins/json-content-importer/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/select-one-variable/#post-5732931)
 * Hi elenis1517,
 * Thank you for trying my plugin!
 * How is the JSON structured?
    Like that: {“tipo”:”data111″, “numero”:”value1111″}
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/select-one-variable/#post-5732935)
 * Hi elenis1517,
 * maybe you try
    [http://www.kux.de/extra/wordpress/plugins/jsoncontentimporter/json-explorer/je.php](http://www.kux.de/extra/wordpress/plugins/jsoncontentimporter/json-explorer/je.php)
 * to bring JSON and shortcode / templatre-code toegether.
 * Best
    Bernhard
 *  Thread Starter [elenis r.](https://wordpress.org/support/users/elenis1517/)
 * (@elenis1517)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/select-one-variable/#post-5732971)
 * Hi Bernhard,
    sorry to reply late.
 * I have a variable “tipo” that has values like “totem”, “garbage”,….
    and “numero”
   tha has a numeric value. I would like to display the “numero” value when “tipo”
   is” “totem”. As I have no json literacy, I am totally lost with code.
 * Thanks for help,
 * All the besst,
    Elena
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/select-one-variable/#post-5732997)
 * To underdstand whats your challange:
    1. You have JSON like that: { “tipo”: {“
   valoftipo”: “totem”, “numero”: “533” } }
 * 2. The plugin should show “533” if, and only if “valoftipo” is “totem”.
    And 
   not if “valoftipo” is anything else like “garbage”
 * Right?
 * This plugin can’t do that. The plugins purpose is to display a JSON, unforunatley
   there is no logic implemented.
 * What I would do: Creating a JSON-Feed containing only the data you want to display.
   E.g. build a PHP-script reading the full JSON and selecting there what you want
   to display. Then use the resulting, reduced JSON Feed for the plugin.
 * Does this make sense?
 * Best
    Bernhard
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/select-one-variable/#post-5733052)
 * Hi Elena,
 * can I help in any way?
 * Bernhard
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/select-one-variable/#post-5733137)
 * Hi Elena,
 * there is a new version 1.1.0:
    [https://downloads.wordpress.org/plugin/json-content-importer.1.1.0.zip](https://downloads.wordpress.org/plugin/json-content-importer.1.1.0.zip)
 * Before I release it as “stable” I would be happy with some user-tests.
    New is
   the very much enhanced template-engine for supporting more JSON-structures.
 * Best
    Bernhard
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/select-one-variable/#post-5733153)
 * Version
    1.1.1 is on test. [https://downloads.wordpress.org/plugin/json-content-importer.1.1.1.zip](https://downloads.wordpress.org/plugin/json-content-importer.1.1.1.zip)
 * does this help?
 *  Thread Starter [elenis r.](https://wordpress.org/support/users/elenis1517/)
 * (@elenis1517)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/select-one-variable/#post-5733165)
 * Hi Bernhard
    sorry to reply so late. I will test the new version and will come
   back to you next week.
 * thanks for your help!!!
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/select-one-variable/#post-5733185)
 * Hi,
 * you’re welcome.
 * Bernhard

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Select one variable’ is closed to new replies.

 * ![](https://ps.w.org/json-content-importer/assets/icon-256x256.png?rev=3464653)
 * [Get Use APIs - JSON Content Importer](https://wordpress.org/plugins/json-content-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-content-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-content-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/json-content-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-content-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-content-importer/reviews/)

## Tags

 * [content](https://wordpress.org/support/topic-tag/content/)
 * [json](https://wordpress.org/support/topic-tag/json/)

 * 9 replies
 * 2 participants
 * Last reply from: [berkux](https://wordpress.org/support/users/berkux/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/select-one-variable/#post-5733185)
 * Status: resolved