Title: Subloop (or maybe) Subloop-Array Issue
Last modified: August 30, 2016

---

# Subloop (or maybe) Subloop-Array Issue

 *  Resolved [sflood](https://wordpress.org/support/users/sflood/)
 * (@sflood)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/subloop-or-maybe-subloop-array-issue/)
 * Hello — Great plugin! It has been so helpful for me for my current project. Here
   is my issue:
 * I have successfully displayed data with basenode “PL” and subloop “CA” but am
   having issues displaying any data from subloop “SA”..
 * My data url: [http://data.nba.com/data/v2015/json/mobile_teams/nba/2015/players/playercard_708_02.json](http://data.nba.com/data/v2015/json/mobile_teams/nba/2015/players/playercard_708_02.json)
 * Subloop “SA” is data from basketball player “Season Average” so it is broken 
   into different sections with the “val” representing the basketball year (1995-
   1996 for example).
 * I’ve tried so many things and can’t get and “SA” data to show up.. any ideas?
 * Some players have played 15 seasons, some have only played 1.. I only need the
   MOST RECENT season, so season **val: “15-16”**.
 * Awesome work, and I hope you can help out. I will donate if you have a fix for
   me!
 * [https://wordpress.org/plugins/json-content-importer/](https://wordpress.org/plugins/json-content-importer/)

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

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/subloop-or-maybe-subloop-array-issue/#post-6858705)
 * Try
    {subloop:ca:-1}{gp} {pts}{subloop-array:ca.sa:-1}{ca.sa.val}, {ca.sa.ta}:{
   ca.sa.tpp}{/subloop-array:ca.sa}{/subloop:ca}<hr> with basenode “pl”
 *  Thread Starter [sflood](https://wordpress.org/support/users/sflood/)
 * (@sflood)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/subloop-or-maybe-subloop-array-issue/#post-6858716)
 * Awesome! That did it. Thank you for the really fast response time. I have donated
   to your paypal because you’re awesome.
 * The second part of my above question: any idea how I can display the LAST “SA”
   entry? For example in the data url I provided there are 20 different Seasons 
   dating back to 1995-1996. Anyway to just display the most recent (in this case“
   15-16”) season data?
 * If not, I will make due with the solution you provided me.
 * Thanks again.
 * – Sam
 *  Thread Starter [sflood](https://wordpress.org/support/users/sflood/)
 * (@sflood)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/subloop-or-maybe-subloop-array-issue/#post-6858829)
 * We’re good! I’ve got everything working perfectly. Thanks again for your help.
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/subloop-or-maybe-subloop-array-issue/#post-6858840)
 * you’re welcome!
    Thanks for donating!

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

The topic ‘Subloop (or maybe) Subloop-Array Issue’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [berkux](https://wordpress.org/support/users/berkux/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/subloop-or-maybe-subloop-array-issue/#post-6858840)
 * Status: resolved