Site
Home / Forum / Developers / Show highlights horizontally

Show highlights horizontally


Posted: 18 Nov 2023 01:55
alberto88


Posts: 19
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,511
Joined: 2020

Thats down to the plugin I think, the data coming from us is exactly as both your screenshots.

alberto88

Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 2 (Total: 2)