>
| post_title; ?> |
+
+ ID ) )
+ $icon = get_the_post_thumbnail( $row->ID, 'sportspress-fit-mini' );
+ else
+ $icon = ' ';
+
+ echo apply_filters( 'sportspress_performance_icon', $icon, $row->ID );
+ ?>
+ |
ID ); ?> |
ID ); ?> |
ID ); ?> |
diff --git a/includes/class-sp-post-types.php b/includes/class-sp-post-types.php
index c2e78030..c2e2519d 100644
--- a/includes/class-sp-post-types.php
+++ b/includes/class-sp-post-types.php
@@ -392,6 +392,9 @@ class SP_Post_types {
'search_items' => __( 'Search', 'sportspress' ),
'not_found' => __( 'No results found.', 'sportspress' ),
'not_found_in_trash' => __( 'No results found.', 'sportspress' ),
+ 'set_featured_image' => __( 'Select Icon', 'sportspress' ),
+ 'remove_featured_image' => __( 'Remove icon', 'sportspress' ),
+ 'use_featured_image' => __( 'Add icon', 'sportspress' ),
),
'public' => false,
'show_ui' => true,
diff --git a/modules/sportspress-icons.php b/modules/sportspress-icons.php
index d3d40351..d200b997 100644
--- a/modules/sportspress-icons.php
+++ b/modules/sportspress-icons.php
@@ -143,7 +143,7 @@ class SportsPress_Icons {
// Bypass if not performance post type
$post_type = get_post_type( $id );
- if ( 'sp_performance' !== $post_type ) return $content;
+ if ( 'sp_performance' !== $post_type && 'sp_statistic' !== $post_type ) return $content;
// Detect if image uploaded
$is_uploaded = isset( $_POST['thumbnail_id'] );