• Resolved robgj

    (@robgj)


    Hi Bernhard, great plugin and thank you for supporting it as much as you do. I’m using the plugin to display various bits from a json but need to be able to get it to display a loop of info in an array. There are two items to be displayed, the name of the reward and no. of kliks required. The json has the format of:

    “rewards”:[{“name”:”name of reward”,”kliks”:”0″},{“name”:”2nd reward”,”kliks”:”12″},{“name”:”3rd reward”,”kliks”:”80″},{“name”:”4th reward”,”kliks”:”120″},{“name”:”5th reward”,”kliks”:”150″},{“name”:”6th reward”,”kliks”:”250″},{“name”:”7th reward”,”kliks”:”450″},{“name”:”8th reward”,”kliks”:”3000″}]

    Any help would be big time appreciated. Many thanks, Rob

    https://wordpress.org/plugins/json-content-importer/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author berkux

    (@berkux)

    Hi rob,

    try
    “name: {name}
    kliks: {kliks}<hr>”
    with basenode=rewards

    [jsoncontentimporter url=”…” basenode=”rewards”]name: {name}
    kliks: {kliks}<hr>[/jsoncontentimporter]

    Feeld free to donate.
    The PRO-version can sort the ranking…

    Thread Starter robgj

    (@robgj)

    Hi Bernhard,

    Thanks so much for that and it seems to be working, shall check out the pro version anyway and/or send a donation your way, many thanks..

    Cheers,
    Rob

    Plugin Author berkux

    (@berkux)

    Hi Robs,

    you’re welcome. We switch to mail communication.

    Bernhard

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

The topic ‘Simple Array Query’ is closed to new replies.