标签: bbPress 该话题包含 2 个回复,3 人参与,最后由 seorapheal 更新于 3年、 10月 前 。 正在查看 3 个帖子:1-3 (共 3 个帖子) 作者 帖子 #28068 yixiaochao 文章数量: 2@yixiaochao 楼主 2018年9月6日 下午1:15 如果在板块前面加图标,缩略图呢? #28069 诗语管理员 文章数量: 5,866@feibisi 2018年9月6日 下午1:57 放到主题和子主题里面,尺寸自己改 ID,array(48,48) add_post_type_support('forum', array('thumbnail')); function ks_forum_icons() { if ( 'forum' == get_post_type() ) { global $post; if ( has_post_thumbnail($post->ID) ) echo '<a href="' . get_permalink( $_post->ID ) . '" title="' . get_the_title( $_post->ID ) . '">'; echo get_the_post_thumbnail($post->ID,array(48,48),array('class' => 'alignleft forum-icon')); echo '</a>'; } } add_action('bbp_theme_before_forum_title','ks_forum_icons'); #36322 seorapheal参与者 文章数量: 21@seorapheal 2020年6月23日 下午6:51 此回复已被标记为私有,🔒 仅楼主及管理员可见。 作者 帖子 正在查看 3 个帖子:1-3 (共 3 个帖子) 哎呀,回复话题必需登录。 未找到对应子版块?请直接在 [疑难杂症] 版块中发帖提问。 访问专版