Search results for: “”

  • twig: Simple format date and time

    Task: Display formatted time from http://worldtimeapi.org/api/timezone/Europe/Berlin. Local stored JSON: https://api.json-content-importer.com/extra/json/worldtimeapi-Berlin.jsonIf you want to set the language (e. g. name of weekdays and month) and the timezone: see here See how this works: URL: see abovetwig-template: In Action:

  • PRO: Use Custom Post Fields for putting together a API-URL

    A WordPress-Page can have some Custom Post Fields (CPF). By that one WP-page can be almost identical to another, the only differencewould be a CPF.see also at https://doc.json-content-importer.com/json-content-importer/pro-use-custom-post-fields/ Example: The JSON-API https://api.json-content-importer.com/extra/json/meetup/1.jsonshould be put together with CPF. So on one page 1.json is used, on another 2.json etc.. Triggered by CPF.Define “keyaa” and “keybb” as…

  • Protected: “WordPress File Upload”-Plugin FileUpload

    There is no excerpt because this is a protected post.

  • api.snooker.org: Nested Shortcodes

    Task: Display all players from http://api.snooker.org/?rt=MoneyRankings&s=2021 and get their names from the feed http://api.snooker.org/?p=PLAYERID See how this works: Step 1: Create a JCI-Template for Player-DetailsURL: http://api.snooker.org/?rt=MoneyRankings&s=2021Name of Template: playerlisttwig-template: Use this Shortcode: [jsoncontentimporterpro nameoftemplate=”playerlist”]  This gives you the list of the first 5 players (slice-filter) players and the PlayerID with a link to the JSON…

  • api.handball.ch

    Example URL: https://api.json-content-importer.com/extra/json/api.handball.ch/games.json Put this into the template manager of the plugin: Try this shortcode (insert real name NAME_OF_TEMPLATE of the JCI template): In action:

  • twig: Handle dash in JSON

    If JSON contains some dashes (“-“) in the keys, the usual way of twig does not work.Here you finde how to solve this: JSON: https://api.json-content-importer.com/extra/json/dash.json twig-Template:Name: dashURL: see above twig-code for plugin template manager: Shortcode: In Action:

  • API: Menu 1st item

    API: https://api.json-content-importer.com/extra/json/GardenFresh/1.json In Action:

  • PRO: twig-Loop with key and value

    JSON: https://api.json-content-importer.com/extra/json/thebluealliance.json Twig-code using for-loop with access to key and value of JSON-data-array (slice: start at item 2 and loop through 3 items): In Action:

  • JSON from API blockchain.info 4 chart

  • PRO: API api.blockchain.info

    API: api.blockchain.info and https://api.blockchain.info/charts/transactions-per-second?timespan=5weeks&rollingAverage=8hours&format=json twig-template: In Action: