One more thing,
I’m listing the events below venue map, but how can i list only the events of that venue.
Right now i’m getting a list of all events in all venues.
Regards,
Hi Pedro,
Are you loading event-blocks.php via a page template? The template requires an id, so something like this should work:
sp_get_template( 'event-blocks.php', array( 'id' => get_the_ID() ) );
The translation system has been changed to eliminate complicated functions. Replacing all instances of
SP()->text->string( $string )
with
__( $string, 'sportspress' )
will bring the template up to date.
Please let me know if there are any other new features that are affecting the templates. I’d be happy to help you.
With the venue events, is this in the taxonomy-venue.php template?
You’re the man,
The solution you gave me work very well, thanks.
I don’t know if i did the right thing, but i change the taxonomy-venue.php to place a map in full screen, than in venue-map.php i list the events below map.
Then i create another file venue-map-list.php and i call this file from event-venue in this way <?php sp_get_template( 'venue-map-list.php', array( 'meta' => $meta ) ); ?>, so i can template this file too…
Note: I like the new translation system, more simple to use as wordpress. 🙂
Regards,
Pedro
Hi Themeloy,
Just one suggestion, in event-performance.php i moved the if condition <?php if ( $has_players && $show_players ): ?> outside the table, without this hack, even if i switch off the players from events it shows an empty table.
Regards,
Hi Pedro,
That sounds like a good solution.
Regarding the event performance table, the reason the if condition is inside the table is because we still want to show the total performance even when individual players aren’t displayed. That way, you can add performance per team, like fouls, attempts, etc.
Glad to hear you like the new translation system too 🙂