Fix event results display

This commit is contained in:
Brian Miyaji
2014-02-21 10:26:43 +11:00
parent 8ebb6b59d3
commit 562e69d1f5
4 changed files with 16 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
<?php
function sportspress_post_thumbnail_html( $html, $post_id, $post_thumbnail_id, $size, $attr ) {
if( empty ( $html ) && in_array( get_post_type( $post_id ), array( 'sp_team', 'sp_tournament' ) ) ) {
if( empty ( $html ) && get_post_type( $post_id ) == 'sp_team' ) {
$parents = get_post_ancestors( $post_id );
foreach ( $parents as $parent ) {
if( has_post_thumbnail( $parent ) ) {