Print

PRO: JCI-Templates

The PRO JCI-Plugin tries to avoid Shortcode-Paramternames and put all into JCI Templates

How to: Use an API and get access to JSON
[jsoncontentimporterpro nameoftemplate=NAME_OF_TEMPLATE some_more_parameter]

Put together a very simple JCI-Template with this settings:

  • URL: dummyrequest
    This grabs some WordPress-Page info for an JSON-Feed
  • twig-template: Show received data as JSON
{{_context | json_encode}}

You can also use the “inline”-Shortcode, but having all settings in one Shortcode has some disadavantages:

  • When using on several pages you always have to copy / change it on several pages
  • WordPress modifies sometimes the HTML-Code in the template. to avoid such trouble use the JCI template.
[jsoncontentimporterpro url=... parser=twig332adj some_more_parameter]
twig-template
[/jsoncontentimporterpro]
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Next PRO: Shortcode-options
On this page: