你曾经想过给国际知名品牌做一个重新的定义吗?
你曾经尝试过把你所会的东西灵活运用吗?
你有希望突破定式,创造不一样的新东西吗?
今天给大家介绍一位新西兰自由插画家的作品,他用自己深厚的手绘功底,重新定义了类似YouTube和BURGER KING(汉堡王)国际知名品牌的标识。我个人觉得他的定义给了这些品牌不一样的世界。
你曾经想过给国际知名品牌做一个重新的定义吗?
你曾经尝试过把你所会的东西灵活运用吗?
你有希望突破定式,创造不一样的新东西吗?
今天给大家介绍一位新西兰自由插画家的作品,他用自己深厚的手绘功底,重新定义了类似YouTube和BURGER KING(汉堡王)国际知名品牌的标识。我个人觉得他的定义给了这些品牌不一样的世界。
好多人都不习惯单独用一张图像设置特色图像。尤其发布文章要交给企业内新手网编人员。
废话不多说,直接将这段代码加在主题functions.php文件?>标识符前面即可。代码能自动将文章内第一章图片设置为特色图像
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | //如果没有特色图像,提取文章中第一张图片作为特色图像 if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); function uazoh_add_thumbnail($post) { $already_has_thumb = has_post_thumbnail(); if (!$already_has_thumb) { $attached_image = get_children( "order=ASC&post_parent=$post->ID&post_type=attachment&post_mime_type=image&numberposts=1" ); if ($attached_image) { $attachment_values = array_values($attached_image); $first_child_image = $attachment_values[0]; add_post_meta($post->ID, '_thumbnail_id', $first_child_image->ID, true); } } } add_action('the_post', 'uazoh_add_thumbnail'); add_action('new_to_publish', 'uazoh_add_thumbnail'); add_action('draft_to_publish', 'uazoh_add_thumbnail'); add_action('pending_to_publish', 'uazoh_add_thumbnail'); add_action('future_to_publish', 'uazoh_add_thumbnail'); } |