首页缩略图弄不出来了
我也想在首页的每篇文章前放小缩略图我的图都放在免费相册里 别人的网站
按照“[url=http://www.koryi.net/wp/612.html][color=#800080]使用自定义字段来显示日志缩略图[/color][/url]”介绍的方法做了 但是没效果 不知道为什么 大家帮我看下
图 比如路径 [url=http://1.com/1.jpg]http://1.com/1.jpg[/url]
在 键 字段输入 “image_thumb”,然后在 “值” 字段输入图片的 URL [url=http://1.com/1.jpg][color=#0000ff]http://1.com/1.jpg[/color][/url]
然后写完博文 发布
现在打开当前主题的 index.php 文件,搜索到下面这行
<div class="postContent"><?php the_content('[Read the rest of this entry...]'); ?></div>
在此行前面插入
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php $values = get_post_custom_values("image_thumb"); echo $values[0]; ?>" alt="<?php the_title(); ?>" /></a>
然后保存
刷新页面 啥图都没有??
如果在管理文章里的 添加图片 中插入图
整个博客的首页就显示插入大图 根本没有缩略图啊?
请大家帮看下 俺是新手 好多代码都不认识 谢谢! 你在自定义字段后填的图片链接要是缩略图才行 用鱼的插件吧,直接可以显示缩略图。
回复 3# 的帖子
插件在哪里有下载啊页:
[1]