Title: Subloop
Last modified: May 20, 2021

---

# Subloop

 *  Resolved [gbidoz](https://wordpress.org/support/users/gbidoz/)
 * (@gbidoz)
 * [5 years ago](https://wordpress.org/support/topic/subloop/)
 * Hi,
    I dont know how to write the code to extratc : main.temp, weather.description
   and dt_txt. I have not extaxtly understand the codification with subloop.
 * [https://api.openweathermap.org/data/2.5/forecast?q=Annecy&cnt=5&appid=d406cd498dee2852cf4a2b6cfd79d699](https://api.openweathermap.org/data/2.5/forecast?q=Annecy&cnt=5&appid=d406cd498dee2852cf4a2b6cfd79d699)
 * I must have five answers.
 * Thanks a lot

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

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [5 years ago](https://wordpress.org/support/topic/subloop/#post-14467654)
 * Hi,,
    try
 *     ```
       [jsoncontentimporter url=https://api.openweathermap.org/data/2.5/forecast?q=Annecy&cnt=5&appid=d406cd498dee2852cf4a2b6cfd79d699]{subloop-array:list:-1}
       {list.dt} {list.dt_txt} - {subloop:list.main:-1}main.temp: {list.main.temp}<br>{/subloop:list.main}{subloop-array:list.weather:-1}weather.description: {list.weather.description}{/subloop-array:list.weather}
       <hr>{/subloop-array:list}[/jsoncontentimporter]
       ```
   
 * Bernhard
 *  Thread Starter [gbidoz](https://wordpress.org/support/users/gbidoz/)
 * (@gbidoz)
 * [5 years ago](https://wordpress.org/support/topic/subloop/#post-14468345)
 * Thanks a lot.
    Other questions : my api request does not update. I still have
   the data from the day before. Why? Thanks
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [5 years ago](https://wordpress.org/support/topic/subloop/#post-14468363)
 * Check if any caching is switched on. Maybe by adding debugmode=10 to the shortcode.

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

The topic ‘Subloop’ 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

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

 * 3 replies
 * 2 participants
 * Last reply from: [berkux](https://wordpress.org/support/users/berkux/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/subloop/#post-14468363)
 * Status: resolved