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

    (@berkux)

    Hi,

    try
    [jsoncontentimporter url=https://www.veterans.gc.ca/xml/jsonp/app.cfc?method=remoteGetHonourRoll&language=en basenode=days]{CASUALTY} - {FORENAMES}<br>[/jsoncontentimporter]

    the callback=? invalidated the JSON…

    Bernhard

    Thread Starter Steve Fulton U.E

    (@ogs2017)

    Hi there

    Thanks for the Shortcode – It did bring in the data but unformatted? Anything i can do to resolve this?

    Please see url: https://canadianheadstones.ca/wp/honour-roll-test/

    Thanks

    Steve

    Thread Starter Steve Fulton U.E

    (@ogs2017)

    Hi there

    Forgot to mention, the Block did not install or i am unable to find it so i have to do all by shortcode.

    Thanks

    Steve

    Plugin Author berkux

    (@berkux)

    Hi Steve,

    when using the shortcode copypaste into the text-filed, not the html-field.
    You may switch the texteditor.

    Bernhard

    Plugin Author berkux

    (@berkux)

    Hi,

    the gutenberg Block goes by “JCI”. You might search in the Blocks for it.
    https://api.json-content-importer.com/veterans/
    is done by the block and

    {subloop-array:days:-1}
    {DATE_OF_DEATH}: {CASUALTY}, {FORENAMES} {SURNAME}<br>
    {/subloop-array:days}

    or with the shortcode:

    [jsoncontentimporter url=https://www.veterans.gc.ca/xml/jsonp/app.cfc?method=remoteGetHonourRoll&language=en]{subloop-array:days:-1}
    {DATE_OF_DEATH}: {CASUALTY}, {FORENAMES} {SURNAME}<br>
    {/subloop-array:days}[/jsoncontentimporter]

    Bernhard

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Obtaining Json from URL’ is closed to new replies.