Make the Date field optional in Event List template and Shortcode
This commit is contained in:
@@ -28,6 +28,8 @@ class SP_Meta_Box_Calendar_Columns {
|
||||
}
|
||||
|
||||
$columns = array();
|
||||
|
||||
$columns['date'] = __( 'Date', 'sportspress' );
|
||||
|
||||
if ( 'teams' === $title_format ) {
|
||||
$columns[ 'event' ] = __( 'Home', 'sportspress' ) . ' | ' . __( 'Away', 'sportspress' );
|
||||
|
||||
@@ -621,6 +621,7 @@ class SP_AJAX {
|
||||
<?php _e( 'Columns:', 'sportspress' ); ?><br>
|
||||
<?php
|
||||
$the_columns = array(
|
||||
'date' => __( 'Date', 'sportspress' ),
|
||||
'event' => __( 'Event', 'sportspress' ),
|
||||
'teams' => __( 'Teams', 'sportspress' ),
|
||||
'time' => __( 'Time', 'sportspress' ),
|
||||
|
||||
Reference in New Issue
Block a user