2017-09-18 1 views

답변

0

기능은 다음

/** 
    * Retrieve Post Thumbnail Description. 
    * 
    * @param string $post_type The post type. 
    * @param string $id The id used to register the thumbnail. 
    * @param int $post_id Post ID. 
    * @return string 
    */ 

    public static function the_post_thumbnail_description($post_type, $id, $post_id) { 
     $post_id = (NULL === $post_id) ? get_the_ID() : $post_id; 
     $postThumbnailID = get_post_meta($post_id, "{$post_type}_{$id}_thumbnail_id", true); 
     $description = get_post($postThumbnailID)->post_content; 
     echo $description; 
    } 

이 기능

MultiPostThumbnails::the_post_thumbnail_description(get_post_type(), 'feature-image-'.$i.'', Null).'<br>'; 
에게 호출하는 성명 설명을 얻을 수
관련 문제