<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>评论：使用自定义字段来显示日志缩略图</title>
	<atom:link href="http://www.koryi.net/wp/612.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.koryi.net/wp/612.html</link>
	<description>我的收藏我作主</description>
	<pubDate>Fri, 09 Jan 2009 22:44:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：午夜客</title>
		<link>http://www.koryi.net/wp/612.html/comment-page-1#comment-8012</link>
		<dc:creator>午夜客</dc:creator>
		<pubDate>Fri, 10 Oct 2008 00:14:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.koryi.net/wp/612.html#comment-8012</guid>
		<description>很不错的</description>
		<content:encoded><![CDATA[<p>很不错的</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：向明伟</title>
		<link>http://www.koryi.net/wp/612.html/comment-page-1#comment-7953</link>
		<dc:creator>向明伟</dc:creator>
		<pubDate>Tue, 30 Sep 2008 04:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.koryi.net/wp/612.html#comment-7953</guid>
		<description>很高兴来到这里</description>
		<content:encoded><![CDATA[<p>很高兴来到这里</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：ray1980</title>
		<link>http://www.koryi.net/wp/612.html/comment-page-1#comment-7909</link>
		<dc:creator>ray1980</dc:creator>
		<pubDate>Wed, 24 Sep 2008 01:19:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.koryi.net/wp/612.html#comment-7909</guid>
		<description>@&lt;a href="#comment-7906" rel="nofollow"&gt;1988y.cc&lt;/a&gt;: 他应该是用的MORE标记截段的。</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-7906" rel="nofollow">1988y.cc</a>: 他应该是用的MORE标记截段的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：1988y.cc</title>
		<link>http://www.koryi.net/wp/612.html/comment-page-1#comment-7906</link>
		<dc:creator>1988y.cc</dc:creator>
		<pubDate>Tue, 23 Sep 2008 20:50:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.koryi.net/wp/612.html#comment-7906</guid>
		<description>我很喜欢这个网站的首页摘要方式
http://www.fighton.cn/
不知道他这个是怎么实现的?好漂亮,我用了他的主题但是显示还是全文,你知道怎么像他那样实现摘要么...</description>
		<content:encoded><![CDATA[<p>我很喜欢这个网站的首页摘要方式<br />
<a href="http://www.fighton.cn/" rel="nofollow">http://www.fighton.cn/</a><br />
不知道他这个是怎么实现的?好漂亮,我用了他的主题但是显示还是全文,你知道怎么像他那样实现摘要么&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：ray1980</title>
		<link>http://www.koryi.net/wp/612.html/comment-page-1#comment-7904</link>
		<dc:creator>ray1980</dc:creator>
		<pubDate>Tue, 23 Sep 2008 12:19:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.koryi.net/wp/612.html#comment-7904</guid>
		<description>你可以参照这篇文章的做法：&lt;a href="http://smartr.cn/wordpress/do-magazine-themes-image-with-ads.html" rel="nofollow"&gt;杂志型WordPress主题中图片的偷懒处理&lt;/a&gt;

图片显示是大图，这个问题你要在自定义字段的图片链接，填的时候就要填小图的链接。或者你干脆试试&lt;a href="http://fairyfish.net/" rel="nofollow"&gt;雪山飞猪&lt;/a&gt;的图片附件显示插件。

&lt;coolcode&gt;&lt;?php $image = get_post_meta($post-&gt;ID, 'lead_image', true); ?&gt;//设定自定义代码的名称
&lt;?php if ( get_post_meta($post-&gt;ID, 'lead_image', true) ) : ?&gt;//执行条件：有图片时候
&lt;div class="leadimg"&gt;&lt;img width="336" height="280" src="&lt;?php echo $image; ?&gt;" alt="" /&gt;&lt;/div&gt;//图片样式控制
&lt;?php else : ?&gt;//如果没有图片的话
//这里插入广告代码
&lt;?php endif ?&gt;&lt;/coolcode&gt;

</description>
		<content:encoded><![CDATA[<p>你可以参照这篇文章的做法：<a href="http://smartr.cn/wordpress/do-magazine-themes-image-with-ads.html" rel="nofollow">杂志型WordPress主题中图片的偷懒处理</a></p>
<p>图片显示是大图，这个问题你要在自定义字段的图片链接，填的时候就要填小图的链接。或者你干脆试试<a href="http://fairyfish.net/" rel="nofollow">雪山飞猪</a>的图片附件显示插件。</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;?php $image = get_post_meta($post-&gt;ID, 'lead_image', true); ?&gt;//设定自定义代码的名称</li>
<li>&lt;?php if ( get_post_meta($post-&gt;ID, 'lead_image', true) ) : ?&gt;//执行条件：有图片时候</li>
<li>&lt;div class=&quot;leadimg&quot;&gt;&lt;img width=&quot;336&quot; height=&quot;280&quot; src=&quot;&lt;?php echo $image; ?&gt;&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;//图片样式控制</li>
<li>&lt;?php else : ?&gt;//如果没有图片的话</li>
<li>//这里插入广告代码</li>
<li>&lt;?php endif ?&gt;</li></ol></div>
]]></content:encoded>
	</item>
	<item>
		<title>来自：1988y.cc</title>
		<link>http://www.koryi.net/wp/612.html/comment-page-1#comment-7903</link>
		<dc:creator>1988y.cc</dc:creator>
		<pubDate>Tue, 23 Sep 2008 07:27:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.koryi.net/wp/612.html#comment-7903</guid>
		<description>还有个问题就是图片显示的时候都是显示原始大小的,如果图片非常大他也照样显示那么大..</description>
		<content:encoded><![CDATA[<p>还有个问题就是图片显示的时候都是显示原始大小的,如果图片非常大他也照样显示那么大..</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：1988y.cc</title>
		<link>http://www.koryi.net/wp/612.html/comment-page-1#comment-7902</link>
		<dc:creator>1988y.cc</dc:creator>
		<pubDate>Tue, 23 Sep 2008 06:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.koryi.net/wp/612.html#comment-7902</guid>
		<description>弄懂了,原来是添加自定义字段就可以了,可是我发现了个问题.如果是没有图片的纯文字的文章的话会多出个标题链接出来..

http://www.1988y.cc/ 你看下..</description>
		<content:encoded><![CDATA[<p>弄懂了,原来是添加自定义字段就可以了,可是我发现了个问题.如果是没有图片的纯文字的文章的话会多出个标题链接出来..</p>
<p><a href="http://www.1988y.cc/" rel="nofollow">http://www.1988y.cc/</a> 你看下..</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：1988y.cc</title>
		<link>http://www.koryi.net/wp/612.html/comment-page-1#comment-7901</link>
		<dc:creator>1988y.cc</dc:creator>
		<pubDate>Tue, 23 Sep 2008 06:20:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.koryi.net/wp/612.html#comment-7901</guid>
		<description>2. 在撰写新日志的页面，向下滚动到一个叫做自定义字段（Custom Fields）的地方，点击按钮展开它。

我怎么找不到这个自定义字段在哪啊?
还有就是
3. 在 Key 字段输入 “image_thumb”，然后在 “Value” 字段输入你刚才上传的图片的 URL。
我也看不明白..
能不能讲的详细点或是来电图片教程啊..谢谢啊..</description>
		<content:encoded><![CDATA[<p>2. 在撰写新日志的页面，向下滚动到一个叫做自定义字段（Custom Fields）的地方，点击按钮展开它。</p>
<p>我怎么找不到这个自定义字段在哪啊?<br />
还有就是<br />
3. 在 Key 字段输入 “image_thumb”，然后在 “Value” 字段输入你刚才上传的图片的 URL。<br />
我也看不明白..<br />
能不能讲的详细点或是来电图片教程啊..谢谢啊..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
