Title: subloop ignored?
Last modified: August 30, 2016

---

# subloop ignored?

 *  Resolved [thetaalchemy](https://wordpress.org/support/users/thetaalchemy/)
 * (@thetaalchemy)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/subloop-ignored/)
 * JSON.
 * >  {
   >  “@context” : “[http://schema.org&#8221](http://schema.org&#8221);, “@type”:“
   > EducationEvent”, “name” : “Theta Healing Practitioner’s Certification Boulder
   > CO”, “startDate” : “2015-07-24 13:00:00”, “Location” : { “@type” : “Place”,“
   > name” : “Unity Church”, “address” : “2855 Folsom StBoulderCO” }, “endDate” :“
   > 2015-07-26 16:00:00”,
   >  “offers” : [ {
   >  “@type” : “Offer”, “name” : “Full Tuition PLUS a session with
   > kevin”, “url” : “[https://www.eventbrite.com/e/theta-healing-practitioners-certification-boulder-co-tickets-16467099538?ref=ebapi&#8221](https://www.eventbrite.com/e/theta-healing-practitioners-certification-boulder-co-tickets-16467099538?ref=ebapi&#8221);,“
   > price”: “493.95” }, { “@type” : “Offer”, “name” : “Early Bird Tuition”, “url”:“
   > [https://www.eventbrite.com/e/theta-healing-practitioners-certification-boulder-co-tickets-16467099538?ref=ebapi&#8221](https://www.eventbrite.com/e/theta-healing-practitioners-certification-boulder-co-tickets-16467099538?ref=ebapi&#8221);,“
   > price”: “453.95” }, { “@type” : “Offer”, “name” : “Deposit”, “url” : “[https://www.eventbrite.com/e/theta-healing-practitioners-certification-boulder-co-tickets-16467099538?ref=ebapi&#8221](https://www.eventbrite.com/e/theta-healing-practitioners-certification-boulder-co-tickets-16467099538?ref=ebapi&#8221);,“
   > price”: “102.47” }, { “@type” : “Offer”, “name” : “Past Theta Graduates: Refresher
   > and Practice Weekend”, “url” : “[https://www.eventbrite.com/e/theta-healing-practitioners-certification-boulder-co-tickets-16467099538?ref=ebapi&#8221](https://www.eventbrite.com/e/theta-healing-practitioners-certification-boulder-co-tickets-16467099538?ref=ebapi&#8221);,“
   > price”: “205.99” }, { “@type” : “Offer”, “name” : “Theta Healing Basic and 
   > Advanced”, “url” : “[https://www.eventbrite.com/e/theta-healing-practitioners-certification-boulder-co-tickets-16467099538?ref=ebapi&#8221](https://www.eventbrite.com/e/theta-healing-practitioners-certification-boulder-co-tickets-16467099538?ref=ebapi&#8221);,“
   > price”: “786.95” } ] }
 * Template im trying to use.
 * >  {
   >  “@context” : “[http://schema.org&#8221](http://schema.org&#8221);, “@type”:“
   > EducationEvent”, “name” :”{subloop:name:1}{text}{/subloop:name}”, “startDate”:“{
   > subloop:start:1}{local}”,{/subloop:start}”, “endDate”:”{subloop:end:1}{local}{/
   > subloop:end}” {subloop:venue:1} “Location” : { “@type” : “Place”, {subloop:
   > address:1}”address”:”{address_1} {city} {region} {postal_code}”{/subloop:address},“
   > name”:”{name}”, }{/subloop:venue} },
 * why is the address subloop not working?
 * [https://wordpress.org/plugins/json-content-importer/](https://wordpress.org/plugins/json-content-importer/)

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

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/subloop-ignored/#post-6228692)
 * Hi thetaalchemy,
 * your template gives a rough idea, what you need in the end.
    The goal is to have
   a new JSON where the venue/location and event is in one node.
 * But the Template-Engine doens not work like your Template suggested.
 * E.g. try just:
    {startDate}
 * This should give you “2015-07-24 13:00:00”
 * subloop and similar concepts can be used to extract the List of “offers”.
 *  Thread Starter [thetaalchemy](https://wordpress.org/support/users/thetaalchemy/)
 * (@thetaalchemy)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/subloop-ignored/#post-6228743)
 * I am so sorry – i posted the desired output.
 * here is the input (or some of it) things that I have seen you do but cant seem
   to get to work is object referencing for example below:
    {pagination.object_count}
   does not work.
 * >  {
   >  “pagination”: { “object_count”: 6, “page_number”: 1, “page_size”: 50, “
   > page_count”: 1 }, “events”: [ { “resource_uri”: “[https://www.eventbriteapi.com/v3/events/17316473037/&#8221](https://www.eventbriteapi.com/v3/events/17316473037/&#8221);,“
   > name”: { “text”: “Theta Healing Manifesting Abundance Boulder CO”, “html”: “
   > Theta Healing Manifesting Abundance Boulder CO” }, “description”: { “text”:“…”,“
   > html”: “…” }, “id”: “17316473037”, “url”: “[http://www.eventbrite.com/e/theta-healing-manifesting-abundance-boulder-co-tickets-17316473037&#8221](http://www.eventbrite.com/e/theta-healing-manifesting-abundance-boulder-co-tickets-17316473037&#8221);,“
   > start”: { “timezone”: “America/Denver”, “local”: “2015-09-19T13:00:00”, “utc”:“
   > 2015-09-19T19:00:00Z” }, “end”: { “timezone”: “America/Denver”, “local”: “2015-
   > 09-20T16:00:00”, “utc”: “2015-09-20T22:00:00Z” }, “created”: “2015-06-09T03:
   > 58:04Z”, “changed”: “2015-06-09T04:03:38Z”, “capacity”: 8, “status”: “live”,“
   > currency”: “USD”, “listed”: true, “shareable”: true, “invite_only”: false, “
   > online_event”: false, “show_remaining”: false, “tx_time_limit”: 480, “logo_id”:“
   > 13770509”, “organizer_id”: “657845911”, “venue_id”: “10708278”, “category_id”:“
   > 114”, “subcategory_id”: “14009”, “format_id”: “9”, “category”: { “resource_uri”:“
   > [https://www.eventbriteapi.com/v3/categories/114/&#8221](https://www.eventbriteapi.com/v3/categories/114/&#8221);,“
   > id”: “114”, “name”: “Religion & Spirituality”, “name_localized”: “Religion &
   > Spirituality”, “short_name”: “Spirituality”, “short_name_localized”: “Spirituality”},“
   > subcategory”: { “resource_uri”: “[https://www.eventbriteapi.com/v3/subcategories/14009/&#8221](https://www.eventbriteapi.com/v3/subcategories/14009/&#8221);,“
   > id”: “14009”, “name”: “New Age” }, “format”: { “resource_uri”: “[https://www.eventbriteapi.com/v3/formats/9/&#8221](https://www.eventbriteapi.com/v3/formats/9/&#8221);,“
   > id”: “9”, “name”: “Class, Training, or Workshop”, “name_localized”: “Class,
   > Training, or Workshop”, “short_name”: “Class”, “short_name_localized”: “Class”},“
   > venue”: { “address”: { “address_1”: “2855 Folsom Street”, “address_2”: null,“
   > city”: “Boulder”, “region”: “CO”, “postal_code”: “80304”, “country”: “US”, “
   > latitude”: 40.028966, “longitude”: -105.26342999999997 }, “resource_uri”: “
   > [https://www.eventbriteapi.com/v3/venues/10708278/&#8221](https://www.eventbriteapi.com/v3/venues/10708278/&#8221);,“
   > id”: “10708278”, “name”: “Unity of Boulder Spiritual Center”, “latitude”: “
   > 40.028966”, “longitude”: “-105.26342999999997” }, “ticket_classes”: [ { “resource_uri”:“
   > [https://www.eventbriteapi.com/v3/events/17316473037/ticket_classes/36651496/&#8221](https://www.eventbriteapi.com/v3/events/17316473037/ticket_classes/36651496/&#8221);,“
   > id”: “36651496”, “name”: “Deposit”, “description”: “Deposit Only\r\n$344 Due
   > at start of the Class. excl. Accomodation. Student must provide their own food
   > and beverages (we provide plenty of water)”, “cost”: { “currency”: “USD”, “
   > display”: “$100.00”, “value”: 10000 }, “fee”: { “currency”: “USD”, “display”:“
   > $3.49”, “value”: 349 }, “tax”: { “currency”: “USD”, “display”: “$0.00”, “value”:
   > 0 }, “actual_cost”: { “currency”: “USD”, “display”: “$100.00”, “value”: 10000},“
   > actual_fee”: { “currency”: “USD”, “display”: “$3.49”, “value”: 349 }, “donation”:
   > false, “free”: false, “minimum_quantity”: 1, “maximum_quantity”: 10, “maximum_quantity_per_order”:
   > 10, “on_sale_status”: “AVAILABLE”, “quantity_total”: 90, “quantity_sold”: 0,“
   > sales_start”: “2011-05-06T15:00:00Z”, “sales_end”: “2015-09-05T13:00:00Z”, “
   > hidden”: false, “include_fee”: false, “split_fee”: false, “hide_description”:
   > true, “auto_hide”: false, “variants”: [], “event_id”: “17316473037” }, { “resource_uri”:“
   > [https://www.eventbriteapi.com/v3/events/17316473037/ticket_classes/36651497/&#8221](https://www.eventbriteapi.com/v3/events/17316473037/ticket_classes/36651497/&#8221);,“
   > id”: “36651497”, “name”: “Full Payment”, “description”: null, “cost”: { “currency”:“
   > USD”, “display”: “$444.00”, “value”: 44400 }, “fee”: { “currency”: “USD”, “
   > display”: “$0.00”, “value”: 0 }, “tax”: { “currency”: “USD”, “display”: “$0.00”,“
   > value”: 0 }, “actual_cost”: { “currency”: “USD”, “display”: “$434.05”, “value”:
   > 43405 }, “actual_fee”: { “currency”: “USD”, “display”: “$9.95”, “value”: 995},“
   > donation”: false, “free”: false, “minimum_quantity”: 1, “maximum_quantity”:
   > null, “maximum_quantity_per_order”: 8, “on_sale_status”: “AVAILABLE”, “quantity_total”:
   > 8, “quantity_sold”: 0, “sales_start”: “2012-05-01T14:00:00Z”, “sales_end”: “
   > 2015-09-19T14:00:00Z”, “hidden”: false, “include_fee”: true, “split_fee”: false,“
   > hide_description”: true, “auto_hide”: false, “variants”: [], “event_id”: “17316473037”}],“
   > logo”: { “id”: “13770509”, “url”: “[https://img.evbuc.com/http%3A%2F%2Fcdn.evbuc.com%2Fimages%2F13770509%2F1677975177%2F1%2Foriginal.jpg?h=200&w=450&s=b0c99eae1361a065a32103a5af8a6cb9&#8221](https://img.evbuc.com/http%3A%2F%2Fcdn.evbuc.com%2Fimages%2F13770509%2F1677975177%2F1%2Foriginal.jpg?h=200&w=450&s=b0c99eae1361a065a32103a5af8a6cb9&#8221);,“
   > aspect_ratio”: “2” }, “organizer”: { “description”: { “text”: “XXX”, “html”:“
   > xxx” }, “logo”: null, “resource_uri”: “[https://www.eventbriteapi.com/v3/organizers/657845911/&#8221](https://www.eventbriteapi.com/v3/organizers/657845911/&#8221);,“
   > id”: “657845911”, “name”: “Kevin Baluha”, “url”: “[http://www.eventbrite.com/o/kevin-baluha-657845911&#8221](http://www.eventbrite.com/o/kevin-baluha-657845911&#8221);,“
   > num_past_events”: 56, “num_future_events”: 6 } } ] }
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/subloop-ignored/#post-6228789)
 * Parsing out of your JSON the following is no problem:
    { “@context” : “[http://schema.org&#8221](http://schema.org&#8221);,“
   @type” : “EducationEvent”, “name” :”Theta Healing Manifesting Abundance Boulder
   CO”, “startDate” : “2015-09-19T13:00:00″,”,”endDate”:”2015-09-20T16:00:00″ “Location”:{“
   @type” : “Place”,”address”:”2855 Folsom Street Boulder CO 80304″,”name”:”Unity
   of Boulder Spiritual Center” }}
 * There are 2 things you have to change in your template. Either you’ll find it.
   Or: My principle is: Donate whatever this is worth to you – in return I’ll send
   you the template code.
    That’s my offer…

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

The topic ‘subloop ignored?’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [berkux](https://wordpress.org/support/users/berkux/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/subloop-ignored/#post-6228789)
 * Status: resolved