Hi there!
Thanks for reaching out.
What happens when you remove all these empty elements? And what if you add the calendar ID there?
Thanks!
Hi Roch
This makes no difference. The shortcode was created by the classic editor addon.
Blockview:
[event_blocks title="" team="0" league="0" season="0" venue="0" status="default" format="default" date="0" date_from="default" date_to="default" date_past="" date_future="" date_relative="0" day="" number="5" order="default" columns="event,teams,time,league,season,venue,article,event_specs" show_all_events_link="0" align="none"]
works!
but listview does not work.
[event_list title="" team="0" league="0" season="0" venue="0" status="default" format="default" date="0" date_from="default" date_to="default" date_past="" date_future="" date_relative="0" day="" number="5" order="default" columns="event,teams,time,league,season,venue,article,event_specs" show_all_events_link="0" align="none"]
As you can see, there is no difference.
I’m working since 2018 with sportspress an I guess there is a small bug in the latest release.
It looks like @jakemaspin has the same issue.
best regards
korbball
@korbball
Maybe you have the same problem as i had, look here: https://ww.wp.xz.cn/support/topic/event-list-18/
Greetings
Stephan Fischer
@korbball
War gerade auf deiner Seite und sehe das wir deutsch schreiben können.
Und es ist genau das selbe Problem wie ich hatte.
Das sollte helfen:
Savvas (@savvasha)
1 week, 5 days ago
Until I find a permanent solution please go to SportsPress/templates/event-list.php and change the line 54
from: if ( $format != ‘all’ )
to: if ( $format != ‘default’ )
Thanks,
Savvas
@funger78 does changing that work to have it to for a fixture list for one team.
@funger78
Thank you very much, this helped.
@jakemaspin
yes. btw, I guess it worked before on team page.
@rochesterj
looks like an issue in event-list.php
best regards
korbball
Struggling to find where this is:
SportsPress/templates/event-list.php and change the line 54
@jakemaspin
It’s here :
/wp-content/plugins/sportspress/includes/sportspress/templates/
However, make sure you are editing the file in a child theme, so you would copy the file to here :
/wp-content/themes/yourtheme-child/sportspress/
See custom page templates :
https://support.themeboy.com/article/58-theme-integration-guide
@corrinarusso does it have to be in a child theme?
@jakemaspin
The short answer is no.
The long answer is :
If you edit the plugin files directly, then every time there is an update to the SportsPress plugin, your changes will be removed / over-written.
Child theme is best practice, but really should be looked at as required.
It’s very easy :
https://developer.ww.wp.xz.cn/themes/advanced-topics/child-themes/
or you can use a plugin :
https://ww.wp.xz.cn/plugins/child-theme-generator/