| | Posted: 18 Nov 2023 01:55 | |
alberto88
 Posts: 20 Joined: 2021
| | Hi, I have a wordpress website and have been using the API 'Last 15 Events by League' and 'Last 5 Events by Team' to get the latest highlights from teams and leagues. However I am getting the highlights vertically: https://ibb.co/74zjjs1
Is there any way to get the highlights displayed horizontally? https://ibb.co/pn67nCP
I am using the Gutenberg block editor and this is the shortcode I am using, with a plugin called JSON Content Importer:
[jsoncontentimporter url=https://www.thesportsdb.com/api/v1/json/3/eventspastleague.php?id=4391] {subloop:events:-1} {subloop-array:events:-1} {events.strHomeTeam} {events.intHomeScore} - {events.intAwayScore} {events.strAwayTeam} {events.dateEventLocal}{/subloop-array:events} {/subloop:events} [/jsoncontentimporter]
Please let me know if someone uses this to display highlights too and managed to get them horizontally. My coding is very basic and json it's not something I have never done before, I got this by following a step by step tutorial.
Thank you y'all. Cheers!
| |
 |
| | Posted: 19 Nov 2023 10:31 | |
 zag
 Posts: 3,754 Joined: 2020
| | Thats down to the plugin I think, the data coming from us is exactly as both your screenshots.
alberto88 | |
 |