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
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
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.
http://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