Plugin Author
berkux
(@berkux)
Hi,
https://www.dropbox.com/s/pdzocf6rte94z98/wpposts.json?dl=0
is not a valid JSON-feed but HTML including a JSON-feed
https://dl.dropboxusercontent.com/content_link_htmlify/swIxywfvBdjZR15WfilOQgFEap5hGO3taKz56kKXhN9gHHIv8YYbyjLgnmWaQk70/file?dl=0
When using it with
[jsoncontentimporter url=https://dl.dropboxusercontent.com/content_link_htmlify/swIxywfvBdjZR15WfilOQgFEap5hGO3taKz56kKXhN9gHHIv8YYbyjLgnmWaQk70/file?dl=0 debugmode=10]test[/jsoncontentimporter]
the dropbox-API returns an error-message.
So: You need a proper JSON-delivering URL here.
Bernhard
I’m using dropbox and a sample since I can’t use the live irl, it’s basically the the standard wp-json plus post meta fields, I need help outputting its fields
Plugin Author
berkux
(@berkux)
Hi,
try
[jsoncontentimporter url=http://api.json-content-importer.com/extra/json/wpjson/1.json debugmode=10]
id: {id}, title: {subloop:title:-1}{title.rendered}{/subloop:title}.
{subloop:post-meta-fields:-1}
{subloop-array:post-meta-fields.date:10}
date: {0}
{/subloop-array:post-meta-fields.date}
{/subloop:post-meta-fields}
<hr>
[/jsoncontentimporter]
Bernhard
PS: Formatting the timestamp is a pro-feature…