的说法的说法爱的色放阿斯蒂芬大师傅
L 这都要隐藏啊……
function wpforce_featured() {
global $post;
$already_has_thumb = has_post_thumbnail($post->ID);
if (!$already_has_thumb){
$attached_image = get_children( "post_parent=$post->ID&post_type=attachment&post_mime_type=image&numberposts=1" );
if ($attached_image) {
foreach ($attached_image as $attachment_id => $attachment) {
set_post_thumbnail($post->ID, $attachment_id);
}
} else {
set_post_thumbnail($post->ID, '414');
}
}
}//end function
add_action('the_post', 'wpforce_featured');
add_action('save_post', 'wpforce_featured');
add_action('draft_to_publish', 'wpforce_featured');
add_action('new_to_publish', 'wpforce_featured');
add_action('pending_to_publish', 'wpforce_featured');
add_action('future_to_publish', 'wpforce_featured');
不知道现在的能用不
渴求啊
组知道 最近有升级没?
:(s 3.X发布接口支持特色图像发布[免获
下载来试试~~~~~~~~~~
看看能不你呢用
KMPlayer不知道现在用起来怎样
有更新的版本吗