• Resolved tony714

    (@tony714)


    Hi,
    Just want to say I really like this plugin and it has all ready saved me a lot of time!

    I am having a problem displaying certain data elements from a yahoo finance JASON feed.

    I can display data elements under the root node (query) but the data I need is down two (2) more nodes:

    query -> results -> quote

    Here is the short code I am using in wordpress:

    [jsoncontentimporter url="http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22LTRX%22)%0A%09%09&env=http%3A%2F%2Fdatatables.org%2Falltables.env&format=json" basenode="query" numberofdisplayeditems="-1"]
    <ul>
      <li>Count: {count}</li>
      <li>Created: {created}</li>
      <li>Language: {lang}</li>
      <li>Symbol: {symbol}</li>
    <ul>
    [/jsoncontentimporter]

    The first three data elements display but ‘Symbol’ which is under the (quote) node will not display. I’m not sure how I can traverse down to that node to display all those data elements and I haven’t been able to find any examples online…

    Any help will be greatly appreciated.

    Thanks You!

    • This topic was modified 9 years, 7 months ago by tony714.
    • This topic was modified 9 years, 7 months ago by tony714.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Having trouble displaying data elements’ is closed to new replies.