No luck with nested subloop or subloop-array
-
I don’t like to ask for help until I’ve tried to resolve a problem myself, but I cannot seem to get nested loops to work. Maybe I’ve missed something obvious, but as I need to resolve this soon I’m hoping someone else can see it : )
Here’s the feed I’m working with:
http://www.smart-feeds.com/getfeeds.aspx?Param=event/live/openAnd one example of where I’m at with the shortcode in WordPress:
[jsoncontentimporter url="http://www.smart-feeds.com/getfeeds.aspx?Param=event/live/open" numberofdisplayeditems="-1" urlgettimeout="10" oneofthesewordsmustbein="Football" oneofthesewordsmustbeindepth="2" basenode="liveEvents"] {subloop:event:1} <h3>{sport}</h3> <small>{group}</small> <h4>{name}</h4> {/subloop:event} [/jsoncontentimporter]This is fine. However, I cannot, however hard I try, find a way to retrieve the [path] (array? ) information nested within each {event}.
Likewise, I’m able to access the first-level data within the parallel {liveEvent} which I need to match up with {event}. That’s fine. But again, the nested {matchClock} or {score} I’m drawing a blank on. My {subloop} or {subloop-array} code is printing out within the post for these, so something is not right.
I must be making a syntax error or something, but I’m stumped.
Found this link useful for an easy way to see the data structure:
Can you help?
The topic ‘No luck with nested subloop or subloop-array’ is closed to new replies.