Php 如何在主页上的特色图片中放置图库图标?

Php 如何在主页上的特色图片中放置图库图标?,php,jquery,wordpress,function,thumbnails,Php,Jquery,Wordpress,Function,Thumbnails,如果您查看玛丽·克莱尔的网站: 在每一篇文章中,他们都会在文章的特色图片上放置一个小图标库。 放在什么条件下,一个WordPress网站怎么办?? 我有以下显示图像的代码: 函数show_image($args,$caption='') { $posted=''; $video=''; $image_size='large'; $before=''; $after=''; $display=true; $img_str=''; $issingle=假; 摘录($args); 如果($post

如果您查看玛丽·克莱尔的网站:

在每一篇文章中,他们都会在文章的特色图片上放置一个小图标库。 放在什么条件下,一个WordPress网站怎么办??

我有以下显示图像的代码:

函数show_image($args,$caption='') { $posted=''; $video=''; $image_size='large'; $before=''; $after=''; $display=true; $img_str=''; $issingle=假; 摘录($args); 如果($postid='') { 返回false; } $videostyle=“”; $isvideo=isvideopost($posted); $img_str=“”; $thumbid=获取\发布\缩略图\ id($postid); $image=wp\u get\u attachment\u image\u src(get\u post\u缩略图\u id($posted),$image\u size); 如果($image) { $image_file=$image[0]; $img_str.=$before; 如果($isvideo==true&&$issingle==false){ $img_街=''; $videostyle='style=“位置:相对;顶部:0;左侧:0;”; }elseif(has_term('video','post_tag',$postid)==true&&$issingle==false){ $img_街=''; $videostyle='style=“位置:相对;顶部:0;左侧:0;”; } $img_街=''; 如果($isvideo==true&&$issingle==false){ $img_街=''; $img_街=''; }elseif(has_term('video','post_tag',$postid)==true&&$issingle==false){ $img_街=''; $img_街=''; } $img_str.=$after; 如果($display==true) { echo$img_str; }否则{ 返回$img_str; } }否则{ 返回false; }
}您可以直接从帖子中的
设置特色图像链接上传图像。您可以使用
u post_缩略图(“缩略图”)访问它。您可以从中获得更多想法。

那么您面临的问题是什么?