<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>haohtml&#039;s blog &#187; wordpress</title>
	<atom:link href="http://blog.haohtml.com/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.haohtml.com</link>
	<description>haohtml&#039;s life and works</description>
	<lastBuildDate>Tue, 22 May 2012 04:57:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>WordPress教程：wp_list_pages()函数</title>
		<link>http://blog.haohtml.com/archives/12653</link>
		<comments>http://blog.haohtml.com/archives/12653#comments</comments>
		<pubDate>Mon, 02 Apr 2012 16:42:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[收藏文章]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/?p=12653</guid>
		<description><![CDATA[让页面可以设置号码，就代表着可以根据那些号码进行排序，下午研究了下代码，去官方网站查看了下wp_list_pages()的介绍，转载过来顺便介绍下函数怎么应用，方便自己及其他人修改模板。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 $defaults = array( 'depth' =&#62; 0, 'show_date' =&#62; '', 'date_format' =&#62; get_option('date_format'), 'child_of' =&#62; 0, 'exclude' =&#62; '', 'title_li' =&#62; __('Pages'), 'echo' =&#62; 1, 'authors' =&#62; '', 'sort_column' =&#62; 'menu_order, post_title'); 默认的参数如上，你可以在wp_list_pages()中采用wp_list_pages(’arguments’);的形式调用。 参数如下： * depth：深度。页面可以建N级的，你可以调用一层，也可以调用N层。 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress文章缩略图使用详解" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12653">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17534338.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress文章缩略图使用详解</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题(模板)修改教程(十一):使用文章缩略图功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12653">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535026.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题(模板)修改教程(十一):使用文章缩略图功能</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wordpress后台文章列表显示缩略图" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12653">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535337.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress后台文章列表显示缩略图</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12653">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>让页面可以设置号码，就代表着可以根据那些号码进行排序，下午研究了下代码，去官方网站查看了下wp_list_pages()的介绍，转载过来顺便介绍下函数怎么应用，方便自己及其他人修改模板。</p>
<div>
<table>
<tbody>
<tr>
<td>
<pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19</pre>
</td>
<td>
<pre>$defaults = array(

'depth' =&gt; 0,

'show_date' =&gt; '',

'date_format' =&gt; get_option('date_format'),

'child_of' =&gt; 0,

'exclude' =&gt; '',

'title_li' =&gt; __('Pages'),

'echo' =&gt; 1,

'authors' =&gt; '',

'sort_column' =&gt; 'menu_order, post_title');</pre>
</td>
</tr>
</tbody>
</table>
</div>
<div></div>
<div>
<p>默认的参数如上，你可以在wp_list_pages()中采用wp_list_pages(’arguments’);的形式调用。<span id="more-12653"></span></p>
<p><strong>参数如下：</strong></p>
<p>* depth：深度。页面可以建N级的，你可以调用一层，也可以调用N层。<br />
* show_date：创建日期。这里可以设置是不是显示创建的日期。<br />
* date_format：如果你设置显示日期，你可以在这里设置限制的格式，无非就是那个y了d了啥的。<br />
* child_of：这里设置是不是显示子页面。<br />
* exclude：设置显示哪些页面，根据页面设置的代码。<br />
* title_li：这里设置显示不显示标题，就像侧栏那里日志分类上面有个h2包起来的“日志分类”一样。<br />
* echo：  有两个值，1和0，1就显示页面链接，2就不显示。<br />
* authors：  wp里面这个很多了，就是显示不显示作者了。<br />
* sort_columu：这个下面好像内容很多，是设置根据啥排序的。默认的是根据”post_title”，还有”menu_order”；”post_date”；”ID”等等。</p>
<p>更多参考：<a href="http://codex.wordpress.org/zh-cn:Main_Page">http://codex.wordpress.org/zh-cn:Main_Page</a></p>
</div>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress文章缩略图使用详解" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12653">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17534338.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress文章缩略图使用详解</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题(模板)修改教程(十一):使用文章缩略图功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12653">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535026.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题(模板)修改教程(十一):使用文章缩略图功能</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wordpress后台文章列表显示缩略图" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12653">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535337.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress后台文章列表显示缩略图</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12653">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/12653/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress添加“特色图片”功能并调用</title>
		<link>http://blog.haohtml.com/archives/12632</link>
		<comments>http://blog.haohtml.com/archives/12632#comments</comments>
		<pubDate>Mon, 19 Mar 2012 08:54:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[收藏文章]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/?p=12632</guid>
		<description><![CDATA[我们在使用wordpress建博客的时候，是不是会发现有些主题中有“设为特色图像”功能，设置后会在首页或者文章的左上角，右上角加上特色的文章LOGO图片，还是比较酷的。但是有些主题是没有的，这是如何设置的呢？如果你的主题没有，但就想加上这个功能，如何设置？ 第一步，在你的改款主题的functions.php加入如下代码： add_theme_support( 'post-thumbnails' ); 第二步，在你的首页文件index.php模板内容位置加入： &#60;?php if ( has_post_thumbnail() ) { the_post_thumbnail(); ?&#62; &#60;?php } else {?&#62; &#60;img src="&#60;?php bloginfo('template_url'); ?&#62;/images/xxx.jpg" /&#62; &#60;?php } ?&#62; 注：XXX.JPG为你在没有特色图片的时候显示的默认图片。 第三步，完毕，在添加文章的时候添加特色图即可显示了。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress文章缩略图使用详解" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12632">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17534338.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress文章缩略图使用详解</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自动保存远程图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12632">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自动保存远程图片</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题(模板)修改教程(十一):使用文章缩略图功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12632">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535026.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题(模板)修改教程(十一):使用文章缩略图功能</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12632">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>我们在使用wordpress建博客的时候，是不是会发现有些主题中有“设为特色图像”功能，设置后会在首页或者文章的左上角，右上角加上特色的文章LOGO图片，还是比较酷的。但是有些主题是没有的，这是如何设置的呢？如果你的主题没有，但就想加上这个功能，如何设置？</p>
<p>第一步，在你的改款主题的functions.php加入如下代码：</p>
<pre>add_theme_support( 'post-thumbnails' );</pre>
<p>第二步，在你的首页文件index.php模板内容位置加入：</p>
<pre>&lt;?php if ( has_post_thumbnail() ) {
the_post_thumbnail(); ?&gt;
&lt;?php } else {?&gt;
&lt;img src="&lt;?php bloginfo('template_url'); ?&gt;/images/xxx.jpg" /&gt;
&lt;?php } ?&gt;</pre>
<p>注：XXX.JPG为你在没有特色图片的时候显示的默认图片。</p>
<p>第三步，完毕，在添加文章的时候添加特色图即可显示了。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress文章缩略图使用详解" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12632">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17534338.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress文章缩略图使用详解</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自动保存远程图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12632">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自动保存远程图片</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题(模板)修改教程(十一):使用文章缩略图功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12632">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535026.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题(模板)修改教程(十一):使用文章缩略图功能</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12632">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/12632/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress主题(模板)修改教程(十一):使用文章缩略图功能</title>
		<link>http://blog.haohtml.com/archives/12606</link>
		<comments>http://blog.haohtml.com/archives/12606#comments</comments>
		<pubDate>Sun, 18 Mar 2012 14:01:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[收藏文章]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/?p=12606</guid>
		<description><![CDATA[今天磊子说的这个缩略图功能，其实网上已经传烂了，不知道大家有没有看过。今儿拿出来原因是，感觉网上说的不是很具体，一些设置没有提到，所以先给大家提前说一下。 首页你要看下你所用的主题有没有开启文章缩略图功能，如果看起的话，会在wordpress后台编辑页面或者文章时在右下角的地方看到一个特色图像的设置，如下图： 如果没有说明你还没有激活这功能。我们需要在你主题functions.php里面加一段代码。 &#60;?php add_theme_support( 'post-thumbnails' ); //激活文章和页面的缩略图功能。 //如果你想分别激活它们，可以使用下面的代码： add_theme_support( 'post-thumbnails', array( 'post' ) ); // 激活文章缩略图功能 add_theme_support( 'post-thumbnails', array( 'page' ) ); // 激活页面缩略图功能 ?&#62; 这样你的缩略图功能就激活了，然后我们添加图片或者直接点击设置特色图片的时候，你会发现多了一个设置如图。 我们单击作为特色图像，这样你就可以将这个图片作为特色图片显示了。 做好之后我们就要对它进行调用然后在前台显示出来，代码是： &#60;?php the_post_thumbnail(); //需要将这段代码放在你的主循环中比如: &#60;?php if ( have_posts() ) while ( have_posts() ) : the_post(); the_post_thumbnail(); endwhile; ?&#62; 这样缩略图就可以显示了。这个基本的方法掌握好之后，下面是一些它的其他使用方法。 1.自定义缩略图的大小(放在主题functions.php里面add_theme_support()的下面) &#60;?php set_post_thumbnail_size( $width, $height, $crop ); ?&#62; [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress文章缩略图使用详解" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17534338.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress文章缩略图使用详解</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wordpress后台文章列表显示缩略图" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535337.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress后台文章列表显示缩略图</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress忘记密码解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress忘记密码解决办法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>今天磊子说的这个缩略图功能，其实网上已经传烂了，不知道大家有没有看过。今儿拿出来原因是，感觉网上说的不是很具体，一些设置没有提到，所以先给大家提前说一下。</p>
<p>首页你要看下你所用的主题有没有开启文章缩略图功能，如果看起的话，会在wordpress后台编辑页面或者文章时在右下角的地方看到一个特色图像的设置，如下图：</p>
<p><a href="http://blog.haohtml.com/wp-content/uploads/2012/03/thumbnail-action.jpg" rel="lightbox[12606]"><img class="aligncenter size-full wp-image-12626" title="thumbnail-action" src="http://blog.haohtml.com/wp-content/uploads/2012/03/thumbnail-action.jpg" alt="" /></a></p>
<p>如果没有说明你还没有激活这功能。我们需要在你主题functions.php里面加一段代码。<span id="more-12606"></span></p>
<pre class="brush:[php]">&lt;?php

add_theme_support( 'post-thumbnails' ); //激活文章和页面的缩略图功能。

//如果你想分别激活它们，可以使用下面的代码：

add_theme_support( 'post-thumbnails', array( 'post' ) ); // 激活文章缩略图功能

add_theme_support( 'post-thumbnails', array( 'page' ) ); // 激活页面缩略图功能

?&gt;</pre>
<p>这样你的缩略图功能就激活了，然后我们添加图片或者直接点击设置特色图片的时候，你会发现多了一个设置如图。</p>
<p><a href="http://blog.haohtml.com/wp-content/uploads/2012/03/thumbnail-select.jpg" rel="lightbox[12606]"><img class="aligncenter size-full wp-image-12627" title="thumbnail-select" src="http://blog.haohtml.com/wp-content/uploads/2012/03/thumbnail-select.jpg" alt="" /></a></p>
<p>我们单击作为特色图像，这样你就可以将这个图片作为特色图片显示了。</p>
<p><a href="http://blog.haohtml.com/wp-content/uploads/2012/03/thumbnail-show.jpg" rel="lightbox[12606]"><img class="aligncenter size-full wp-image-12628" title="thumbnail-show" src="http://blog.haohtml.com/wp-content/uploads/2012/03/thumbnail-show.jpg" alt="" /></a></p>
<p>做好之后我们就要对它进行调用然后在前台显示出来，代码是：</p>
<pre class="brush:[php]">&lt;?php

the_post_thumbnail(); 

//需要将这段代码放在你的主循环中比如:

&lt;?php
 if ( have_posts() ) while ( have_posts() ) : the_post();
 the_post_thumbnail();
 endwhile;
?&gt;</pre>
<p>这样缩略图就可以显示了。这个基本的方法掌握好之后，下面是一些它的其他使用方法。</p>
<p>1.自定义缩略图的大小(放在主题functions.php里面add_theme_support()的下面)</p>
<pre class="brush:[php]">&lt;?php set_post_thumbnail_size( $width, $height, $crop ); ?&gt;
//$width 是图片的宽度，可以直接填数字
//$height 是图片的高度,也可以直接填数字
//$crop 是否进行裁剪，默认是false不裁剪，如果填写true 你的图片将会裁剪成你设置的大小。</pre>
<p>不过set_post_thumbnail_size()磊子在用的时候不起作用，不知道大家有没有试过。试过后如果可以使用的记得和磊子说下哈。</p>
<p>我这边使用的是直接规定缩略图大小(直接在主循环里面输出)</p>
<pre class="brush:[php]">&lt;?php
the_post_thumbnail('thumbnail');       // 缩略图(最大默认 宽150px高150px)
the_post_thumbnail('medium');          // 中等大小(最大默认 宽300px 高300px)
the_post_thumbnail('large');           // 大图 (最后默认宽1024px高1024px)
the_post_thumbnail('full');            // 原图
the_post_thumbnail( array(100,100) );  // 自己定义宽高
?&gt;</pre>
<pre>这里需要多讲一下，设置默认缩略图大小是在wordpress后台 设置-&gt;媒体 里面。</pre>
<p><a href="http://blog.haohtml.com/wp-content/uploads/2012/03/thumbnail-style.jpg" rel="lightbox[12606]"><img class="aligncenter size-full wp-image-12629" title="thumbnail-style" src="http://blog.haohtml.com/wp-content/uploads/2012/03/thumbnail-style.jpg" alt="" /></a><br />
2.判断文章是否含有缩略图</p>
<pre class="brush:[php]">&lt;?php
has_post_thumbnail();

//用法是，通过if如果进行判断

if ( has_post_thumbnail() )
{
	//显示缩略图
} else {
	//没有缩略图( 这里可以放一张默认的图片 )
}

?&gt;</pre>
<p>3.创建新的缩略图大小(放在主题functions.php文件add_theme_support()下面)</p>
<p>我们看到上面设置的图片大小都是等比例缩小的。不管你怎么设置它都是按比列来进行缩小的。如果想设置宽高不等的。便可以使用下面这个函数。</p>
<pre class="brush:[php]">&lt;?php

 add_image_size( $name, $width, $height, $crop ); 

//这里的第一个参数$name是新创建缩略图的名称，其他的参数和上面说的是一样的

//使用方法

add_image_size('home-thumb','200','120');

?&gt;</pre>
<p>然后我们在显示的时候只需要在填上新的缩略图名称如：the_post_thumbnail(‘home-thumb’);这样就可以显示了。</p>
<p>4.获取缩略图ID号</p>
<pre class="brush:[php]">&lt;?php  get_post_thumbnail_id();  ?&gt;  //放在主循环中</pre>
<p>以上便是今天主要讲的内容，大家如果以后有需要的可以来看看。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress文章缩略图使用详解" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17534338.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress文章缩略图使用详解</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wordpress后台文章列表显示缩略图" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535337.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress后台文章列表显示缩略图</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress忘记密码解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress忘记密码解决办法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/12606/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress后台文章列表显示缩略图</title>
		<link>http://blog.haohtml.com/archives/12607</link>
		<comments>http://blog.haohtml.com/archives/12607#comments</comments>
		<pubDate>Sun, 18 Mar 2012 12:29:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[数据库类]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/?p=12607</guid>
		<description><![CDATA[大家都知道我们在wordpress后台添加文章或页面时如果你启用了缩略图功能，那么会在添加时有个特色图像的设置。具体的大家可以看下我的教程(点击查看)，当我们添加好后。如果你在wordpress后台需要看某个文章或页面的缩略图是什么的时候，还得单击编辑才能看到。这样是不是很麻烦呢？如果我们直接把缩略图显示在文章或者页面的列表上面，这样的话就一目了然了。如下面效果图: 今天磊子就把这个功能的实现，分享给大家，我们需要用到的是wordpress插件API里面的函数方法。看下面代码： &#60;?php add_filter('manage_posts_columns', 'lei_add_thumb_col'); function lei_add_thumb_col($cols) { $cols['thumbnail'] = __('Thumbnail'); return $cols; } //__('Thumbnail')是显示的文字标题，也可以改成__('缩略图')。 //通过manage_posts_columns方法将文字标题显示在文章列表上 add_action('manage_posts_custom_column', 'lei_get_thumb_show'); function lei_get_thumb_show($column_name ) { if ( $column_name == 'thumbnail' ) { echo get_the_post_thumbnail(get_the_ID(),array(100,100)); } } ?&#62; //get_the_post_thumbnail获取缩略图以及设置它的大小为宽100，高100 //通过manage_posts_custom_column方法将缩略图显示在列表上面 将上面两段代码放在你所用主题的functions.php里面,就可以在文章列表上面显示缩略图了。那么显示页面的缩略图，和文章的方法是一样的。只需要将manage_posts_columns和manage_posts_custom_column中间的posts改成manage_pages_columns和manage_pages_custom_column即可，是不是很方便也很简单呢！具体代码给大家贴出来，方便大家使用. &#60;?php add_filter('manage_pages_columns', 'lei_add_page_thumb_col'); function lei_add_page_thumb_col($cols) { $cols['thumbnail'] = __('Thumbnail'); return $cols; } //__('Thumbnail')是显示的文字标题，也可以改成__('缩略图')。 //通过manage_posts_columns方法将文字标题显示在文章列表上 add_action('manage_pages_custom_column', 'lei_get_page_thumb_show'); function lei_get_page_thumb_show($column_name [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress文章缩略图使用详解" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17534338.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress文章缩略图使用详解</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题(模板)修改教程(十一):使用文章缩略图功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535026.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题(模板)修改教程(十一):使用文章缩略图功能</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Wordpress教程：wp_list_pages()函数" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12653&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Wordpress教程：wp_list_pages()函数</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>大家都知道我们在wordpress后台添加文章或页面时如果你启用了缩略图功能，那么会在添加时有个特色图像的设置。具体的大家可以看下我的教程(<a title="WordPress主题(模板)修改教程(十一):使用文章缩略图功能" href="http://www.favortt.com/wordpress-theme-thumbnails.html" target="_blank">点击查看</a>)，当我们添加好后。如果你在wordpress后台需要看某个文章或页面的缩略图是什么的时候，还得单击编辑才能看到。这样是不是很麻烦呢？如果我们直接把缩略图显示在文章或者页面的列表上面，这样的话就一目了然了。如下面效果图:</p>
<p><a href="http://blog.haohtml.com/wp-content/uploads/2012/03/thumbnail-list.png" rel="lightbox[12607]"><img class="aligncenter size-full wp-image-12608" title="thumbnail-list" src="http://blog.haohtml.com/wp-content/uploads/2012/03/thumbnail-list.png" alt="" /></a></p>
<p>今天磊子就把这个功能的实现，分享给大家，我们需要用到的是wordpress插件API里面的函数方法。看下面代码：<span id="more-12607"></span></p>
<pre class="brush:[php]">&lt;?php
add_filter('manage_posts_columns', 'lei_add_thumb_col');
function lei_add_thumb_col($cols) {
	$cols['thumbnail'] = __('Thumbnail');
	return $cols;
}

//__('Thumbnail')是显示的文字标题，也可以改成__('缩略图')。 

//通过manage_posts_columns方法将文字标题显示在文章列表上

add_action('manage_posts_custom_column', 'lei_get_thumb_show');
function lei_get_thumb_show($column_name ) {
	if ( $column_name  == 'thumbnail'  ) {
		echo get_the_post_thumbnail(get_the_ID(),array(100,100));
	}
}
?&gt;

//get_the_post_thumbnail获取缩略图以及设置它的大小为宽100，高100
//通过manage_posts_custom_column方法将缩略图显示在列表上面</pre>
<div>将上面两段代码放在你所用主题的functions.php里面,就可以在文章列表上面显示缩略图了。那么显示页面的缩略图，和文章的方法是一样的。只需要将manage_posts_columns和manage_posts_custom_column中间的posts改成manage_pages_columns和manage_pages_custom_column即可，是不是很方便也很简单呢！具体代码给大家贴出来，方便大家使用.</div>
<div>
<pre class="brush:[php]">&lt;?php
add_filter('manage_pages_columns', 'lei_add_page_thumb_col');
function lei_add_page_thumb_col($cols) {
	$cols['thumbnail'] = __('Thumbnail');
	return $cols;
}
//__('Thumbnail')是显示的文字标题，也可以改成__('缩略图')。
//通过manage_posts_columns方法将文字标题显示在文章列表上

add_action('manage_pages_custom_column', 'lei_get_page_thumb_show');
function lei_get_page_thumb_show($column_name ) {
	if ( $column_name  == 'thumbnail'  ) {
		echo get_the_post_thumbnail(get_the_ID(),array(100,100));
	}
}</pre>
</div>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress文章缩略图使用详解" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17534338.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress文章缩略图使用详解</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题(模板)修改教程(十一):使用文章缩略图功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535026.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题(模板)修改教程(十一):使用文章缩略图功能</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Wordpress教程：wp_list_pages()函数" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12653&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress教程：wp_list_pages()函数</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/12607/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress文章缩略图使用详解</title>
		<link>http://blog.haohtml.com/archives/12603</link>
		<comments>http://blog.haohtml.com/archives/12603#comments</comments>
		<pubDate>Sun, 18 Mar 2012 12:15:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[收藏文章]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/?p=12603</guid>
		<description><![CDATA[许多WordPress主题使用图片代表每篇文章，特别是一些杂志般布局的。图片可能只在首页显示，可能是独立的，或者放在摘要旁边。迄今为止，并没有标准化的方法来实现这个功能。很多主题需要用户冗长乏味的在自定义域中输入图片URL，图片通常需要手动裁切。从WordPress 2.9开始，主题作者可以轻松地开启缩略图选择界面，然后使用简单的模板标签调用图片。 　　首先，在主题的functions.php中声明该主题支持缩略图功能，这将开启WP管理后台中的缩略图设置界面。 add_theme_support( 'post-thumbnails' ); 上面的代码将在文章（Post）和页面（Page）两种内容模型中都开启缩略图选择界面，如果只想选择其一，可以添加参数： add_theme_support( 'post-thumbnails', array( 'post' ) ); // Add it for posts add_theme_support( 'post-thumbnails', array( 'page' ) ); // Add it for pages 添加所需的行到functions.php中即可。 下一步，指定缩略图尺寸，共有两个选项：等比例缩放和裁切。等比例缩放就是例如一张100×50图片，设定的大小为50×50，则此图片会被缩放成50×25。这种方式的好处是整张图片都能显示，缺点是生成的图片大小不一，有时是限宽的，有时是限高的。如果想把图片限定在某个宽度、高度不限的话，可以指定宽度，再指定一个绝不可能达到的高度，如99999。 set_post_thumbnail_size( 50, 50 ); // 50 pixels wide by 50 pixels tall, box resize mode 在第二个选项裁切模式中，图片将被裁切成匹配目标的纵横比，然后在精确地缩放至指定尺寸。好处是生成的图片大小一致，缺点是图片将被裁切（或从左右两边，或从上下）以适合目标尺寸的纵横比，被裁掉的部份无法显示在缩略图中。 set_post_thumbnail_size( 50, 50, true ); // 50 pixels [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="wordpress后台文章列表显示缩略图" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535337.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress后台文章列表显示缩略图</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自动保存远程图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自动保存远程图片</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress忘记密码解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress忘记密码解决办法</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>许多WordPress主题使用图片代表每篇文章，特别是一些杂志般布局的。图片可能只在首页显示，可能是独立的，或者放在摘要旁边。迄今为止，并没有标准化的方法来实现这个功能。很多主题需要用户冗长乏味的在自定义域中输入图片URL，图片通常需要手动裁切。从WordPress 2.9开始，主题作者可以轻松地开启缩略图选择界面，然后使用简单的模板标签调用图片。</p>
<p align="center"><a href="http://blog.haohtml.com/wp-content/uploads/2012/03/064359EQ7.jpg" rel="lightbox[12603]"><img class="aligncenter size-full wp-image-12604" title="wordpress theme" src="http://blog.haohtml.com/wp-content/uploads/2012/03/064359EQ7.jpg" alt="" /></a></p>
<p>　　首先，在主题的<code>functions.php</code>中声明该主题支持缩略图功能，这将开启WP管理后台中的缩略图设置界面。<span id="more-12603"></span></p>
<pre class="brush:[php]">add_theme_support( 'post-thumbnails' );</pre>
<p>上面的代码将在文章（Post）和页面（Page）两种内容模型中都开启缩略图选择界面，如果只想选择其一，可以添加参数：</p>
<pre class="brush:[php]">add_theme_support( 'post-thumbnails', array( 'post' ) ); // Add it for posts
add_theme_support( 'post-thumbnails', array( 'page' ) ); // Add it for pages</pre>
<p>添加所需的行到<code>functions.php</code>中即可。</p>
<p>下一步，指定缩略图尺寸，共有两个选项：等比例缩放和裁切。等比例缩放就是例如一张100×50图片，设定的大小为50×50，则此图片会被缩放成50×25。这种方式的好处是整张图片都能显示，缺点是生成的图片大小不一，有时是限宽的，有时是限高的。如果想把图片限定在某个宽度、高度不限的话，可以指定宽度，再指定一个绝不可能达到的高度，如99999。</p>
<pre class="brush:[php]">set_post_thumbnail_size( 50, 50 ); // 50 pixels wide by 50 pixels tall, box resize mode</pre>
<p>在第二个选项裁切模式中，图片将被裁切成匹配目标的纵横比，然后在精确地缩放至指定尺寸。好处是生成的图片大小一致，缺点是图片将被裁切（或从左右两边，或从上下）以适合目标尺寸的纵横比，被裁掉的部份无法显示在缩略图中。</p>
<pre class="brush:[php]">set_post_thumbnail_size( 50, 50, true ); // 50 pixels wide by 50 pixels tall, hard crop mode</pre>
<p>现在可以利用模板函数在主题中显示这些图片，这些函数应放到主循环中（<strong>译者注：</strong>作者根据2.9撰写此文，根据3.0默认主题的代码来看，不在主循环内也能使用这些函数调用缩略图）。</p>
<p><code>　　has_post_thumbnail()</code>返回布尔值，表明当前文章是否有手动选的缩略图：</p>
<pre class="brush:[php]">&lt;?php
    if ( has_post_thumbnail() ) {
	// the current post has a thumbnail
    } else {
	the current post lacks a thumbnail
    }
?&gt;</pre>
<p><code>　　the_post_thumbnail()</code>如果存在缩略图则输出缩略图：</p>
<pre class="brush:[php]">&lt;?php the_post_thumbnail(); ?&gt;</pre>
<p>这些是最基本用法，下面是一些高级用法。</p>
<p>假设你想在首页使用50×50硬裁切（hard-cropped）的缩略图，而在文章的永久链接页面使用400像素宽（不限高）的缩略图，指定额外的自定义尺寸即可，代码如下：</p>
<p><code>　functions.php代码：</code></p>
<pre class="brush:[php]">add_theme_support( 'post-thumbnails' );

set_post_thumbnail_size( 50, 50, true ); // Normal post thumbnails

add_image_size( 'single-post-thumbnail', 400, 9999 ); // Permalink thumbnail size</pre>
<p><code>　home.php</code>或者<code>index.php</code>的代码，取决于主题结构：</p>
<pre class="brush:[php]">&lt;?php the_post_thumbnail(); ?&gt;</pre>
<p><code>　single.php</code>代码：</p>
<pre class="brush:[php]">&lt;?php the_post_thumbnail( 'single-post-thumbnail' ); ?&gt;</pre>
<p><code>　　set_post_thumbnail_size()</code>仅仅调用<code>add_image_size( 'post-thumbnail' )</code>——默认的文章缩略图“句柄”，但正如你所见可以添加额外的句柄来调用<code>add_image_size( $handle, $width, $height, {$hard_crop_switch} );</code>，使用的时候区分句柄即可<code>the_post_thumbnail( $handle );</code></p>
<p>如果想要主题支持更早的WordPress版本，需要用<code>function_exists()</code>来阻止早期版本调用这些新函数：</p>
<pre class="brush:[php]">if ( function_exists( 'add_theme_support' ) ) { // Added since 2.9
    add_theme_support( 'post-thumbnails' );
    set_post_thumbnail_size( 50, 50, true ); // Normal post thumbnails
    add_image_size( 'single-post-thumbnail', 400, 9999 ); // Permalink thumbnail size
}</pre>
<p>警告：WordPress 2.9这个功能仅仅对新上传的图片有效，还不能对已存在图片调整大小，我正在考虑在未来版本中实现它（译者注：WordPress 3.0已经可以调整？）。如果你先前上传了缩略图，然后重新声明一个新的尺寸，那么在调用模板函数时将不能对这些先前上传的缩略图硬裁切，等比例缩放也将在浏览器中完成。作为临时的解决方案，Viper007Bond开发了一个插件回溯和创建丢失的缩略图尺寸：<a title="http://wordpress.org/extend/plugins/regenerate-thumbnails/" href="http://wordpress.org/extend/plugins/regenerate-thumbnails/">Regenerate Thumbnails</a>。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="wordpress后台文章列表显示缩略图" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535337.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress后台文章列表显示缩略图</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自动保存远程图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自动保存远程图片</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress忘记密码解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F305&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress忘记密码解决办法</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/12603/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress导航英文字母“home”修改成中文“首页”的解决办法</title>
		<link>http://blog.haohtml.com/archives/12591</link>
		<comments>http://blog.haohtml.com/archives/12591#comments</comments>
		<pubDate>Fri, 16 Mar 2012 15:48:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[收藏文章]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/?p=12591</guid>
		<description><![CDATA[这个需要修改原始文件，在站点的  /wp-content/languages/zh_CN.po 使用编辑器 poEdit  ，在里面查找 home，修改掉那个中文翻译就可以了。 这个是应为WP在汉化过程中并没有将HOME 汉化成中文的 首页<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12591">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress文章缩略图使用详解" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12591">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17534338.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress文章缩略图使用详解</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题(模板)修改教程(十一):使用文章缩略图功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12591">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535026.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题(模板)修改教程(十一):使用文章缩略图功能</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自动保存远程图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12591">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自动保存远程图片</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>这个需要修改原始文件，在站点的  /wp-content/languages/zh_CN.po</p>
<p>使用编辑器 poEdit  ，在里面查找 home，修改掉那个中文翻译就可以了。</p>
<p>这个是应为WP在汉化过程中并没有将HOME 汉化成中文的 首页</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12591">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress文章缩略图使用详解" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12591">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17534338.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress文章缩略图使用详解</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题(模板)修改教程(十一):使用文章缩略图功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12591">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535026.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题(模板)修改教程(十一):使用文章缩略图功能</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自动保存远程图片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F415&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12591">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自动保存远程图片</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/12591/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用插件Syntax Highlighter and Code Prettifier Plugin for WordPress实现代码高亮</title>
		<link>http://blog.haohtml.com/archives/11237</link>
		<comments>http://blog.haohtml.com/archives/11237#comments</comments>
		<pubDate>Sat, 03 Sep 2011 13:56:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[收藏文章]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/?p=11237</guid>
		<description><![CDATA[WordPress 高亮代码的插件，在后台管理界面-插件-添加新插件中搜索 highlighter 就可以找到Syntax Highlighter and Code Prettifier Plugin for WordPress 它可以支持以下的语言： Bash/shell C# C++ CSS Delphi Diff Groovy JavaScript Java Perl PHP Plain Text Python Ruby Scala SQL Visual Basic XML 使用方法： 觉得有点不足的是在可视化模式下不能直接通过按钮添加， 要加入代码时切换到HTML编辑模式下，加入： &#60;pre class="brush:[code-alias]"&#62; //..your code &#60;/pre&#62; ========================= HTML代码: &#60;pre class="brush:[php]"&#62; &#38;lt;?php $sitename = '网页制作技术网'; $url = 'http://www.haohtml.com'; echo $sitename . ':' [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress文章缩略图使用详解" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17534338.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress文章缩略图使用详解</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wordpress后台文章列表显示缩略图" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535337.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress后台文章列表显示缩略图</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题(模板)修改教程(十一):使用文章缩略图功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535026.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题(模板)修改教程(十一):使用文章缩略图功能</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>WordPress 高亮代码的插件，在后台管理界面-插件-添加新插件中搜索 highlighter 就可以找到Syntax Highlighter and Code Prettifier Plugin for WordPress<br />
它可以支持以下的语言：</p>
<ul>
<li>Bash/shell</li>
<li>C#</li>
<li>C++</li>
<li>CSS</li>
<li>Delphi</li>
<li>Diff</li>
<li>Groovy</li>
<li>JavaScript</li>
<li>Java</li>
<li>Perl</li>
<li>PHP</li>
<li>Plain Text</li>
<li>Python</li>
<li>Ruby</li>
<li>Scala</li>
<li>SQL</li>
<li>Visual Basic</li>
<li>XML</li>
</ul>
<p>使用方法：<br />
觉得有点不足的是在可视化模式下不能直接通过按钮添加，<br />
要加入代码时切换到HTML编辑模式下，加入：</p>
<p>&lt;pre class="brush:[code-alias]"&gt;</p>
<p>//..your code</p>
<p>&lt;/pre&gt;</p>
<p>=========================</p>
<p>HTML代码:</p>
<blockquote>
<pre>&lt;pre class="brush:[php]"&gt;
&amp;lt;?php
$sitename = '网页制作技术网';
$url = 'http://www.haohtml.com';
echo $sitename . ':' . $url;
?&amp;gt;
&lt;/pre&gt;</pre>
</blockquote>
<p><span id="more-11237"></span>PHP效果：</p>
<pre class="brush:[php]">&lt;?php
$sitename = '网页制作技术网';
$url = 'http://www.haohtml.com';
echo $sitename . ':' . $url;
?&gt;</pre>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress文章缩略图使用详解" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17534338.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress文章缩略图使用详解</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wordpress后台文章列表显示缩略图" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535337.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress后台文章列表显示缩略图</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题(模板)修改教程(十一):使用文章缩略图功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F11237">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535026.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题(模板)修改教程(十一):使用文章缩略图功能</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/11237/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Super Image Plugin</title>
		<link>http://blog.haohtml.com/archives/8264</link>
		<comments>http://blog.haohtml.com/archives/8264#comments</comments>
		<pubDate>Wed, 30 Mar 2011 03:26:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[收藏文章]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/?p=8264</guid>
		<description><![CDATA[介绍 本插件能够实现 WordPress 上传图片自动增加水印 可以添加图片水印和文字水印两种类型 可以对已经存在的图片进行批处理添加水印 可以对文章内容中的外部引用图片自动下载并添加水印 另外： 本插件具有图片备份功能，即在图片添加前对图片进行备份，可以随时恢复到没有添加水印前的状态 添加了具有在线管理图片的功能，能够批量删除已经存在的图片 文字水印和图片水印可以进行位置精确操作 可以根据图片大小设置判断是否给图片添加水印 &#160; 简单安装 注解：本安装只能实现博客内容中包括的图片添加水印，即只有博客内容中的 &#60;img src=”"&#62;标签引用的图片才会被添加水印，如果你上传了图片但是博客中使用了缩略图，那么只有缩略图添加水印！ 下载zip文件，解压后把文件夹放入 wp-content/plugins 目录，然后在 Plugins 页面激活该插件。 在 Setting-&#62;Super Image Plugin -&#62; ContentImageDown 菜单下的两个设置均设置为 Yes。 高级安装 注解：按照本方法安装能够实现上传图片源文件和缩略图均添加水印。 首先按照简单安装，第一步操作完毕然后进行如下操作： 打开/wordpress/wp-admin/includes/media.php查找（大约第108行） // Save the data $id = wp_insert_attachment($attachment, $file, $post_parent); 在这段代码上面添加如下代码： // INSERT HERE!!! if (function_exists("IM_mark")) { IM_mark($file,$op="overwrite"); } 如果你要在你上传的图片缩略图和中型图片添加水印请进行如下操作，要求版本Wordpress v2.5.1，打开/wordpress/wp-includes/media.php查找如下代码（大约第230行） imagedestroy( $newimage ); [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="wordpress后台文章列表显示缩略图" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F8264">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535337.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress后台文章列表显示缩略图</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F8264">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题(模板)修改教程(十一):使用文章缩略图功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F8264">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535026.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题(模板)修改教程(十一):使用文章缩略图功能</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress文章缩略图使用详解" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F8264">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17534338.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress文章缩略图使用详解</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<h2>介绍</h2>
<ul>
<li>本插件能够实现 WordPress 上传图片自动增加水印</li>
<li>可以添加图片水印和文字水印两种类型</li>
<li>可以对已经存在的图片进行批处理添加水印</li>
<li>可以对文章内容中的外部引用图片自动下载并添加水印</li>
</ul>
<p>另外：</p>
<ul>
<li>本插件具有图片备份功能，即在图片添加前对图片进行备份，可以随时恢复到没有添加水印前的状态</li>
<li>添加了具有在线管理图片的功能，能够批量删除已经存在的图片</li>
<li>文字水印和图片水印可以进行位置精确操作</li>
<li>可以根据图片大小设置判断是否给图片添加水印</li>
</ul>
<p>&nbsp;</p>
<h2><a name="toc-2"></a>简单安装</h2>
<p>注解：本安装只能实现博客内容中包括的图片添加水印，即只有博客内容中的 &lt;img src=”"&gt;标签引用的图片才会被添加水印，如果你上传了图片但是博客中使用了缩略图，那么只有缩略图添加水印！<span id="more-8264"></span></p>
<ul>
<li>下载zip文件，解压后把文件夹放入 <code>wp-content/plugins</code> 目录，然后在 Plugins 页面激活该插件。</li>
<li>在 <code>Setting-&gt;Super Image Plugin -&gt; ContentImageDown</code> 菜单下的两个设置均设置为 Yes。</li>
</ul>
<h2><a name="toc-3"></a>高级安装</h2>
<p>注解：按照本方法安装能够实现上传图片源文件和缩略图均添加水印。</p>
<p>首先按照<strong>简单安装</strong>，第一步操作完毕然后进行如下操作：</p>
<p>打开/wordpress/wp-admin/includes/media.php查找（大约第108行）</p>
<pre> // Save the data
$id = wp_insert_attachment($attachment, $file, $post_parent);</pre>
<p>在这段代码上面添加如下代码：</p>
<pre>// INSERT HERE!!!
if (function_exists("IM_mark"))
{
IM_mark($file,$op="overwrite");
}</pre>
<p>如果你要在你上传的图片缩略图和中型图片添加水印请进行如下操作，要求版本Wordpress v2.5.1，打开/wordpress/wp-includes/media.php查找如下代码（大约第230行）</p>
<pre>imagedestroy( $newimage );</pre>
<p>在这段代码上面添加如下代码：</p>
<pre>// INSERT HERE!!!
if (function_exists("IM_mark"))
{
IM_mark($destfilename,$op="overwrite");
}</pre>
<h2><a name="toc-4"></a>注意</h2>
<ul>
<li>安装完毕后替换mark.png为你自己的水印图片</li>
<li>fonts目录中的字体你可以自己替换，使用windows的ttf字体都可以</li>
<li>如果你使用文字水印而且使用中文，请选择字体chinese.ttf ，否会出现乱码</li>
</ul>
<p>插件作者：<a href="http://www.pkphp.com/" target="_blank">askie</a><br />
插件下载：<a href="http://wordpress.org/extend/plugins/super-image-plugin/" target="_blank">Super Image Plugin</a></p>
<p>插件下载地址:<a href="http://www.pkphp.com/2011/02/12/askie-all-wordpress-plugins/">http://www.pkphp.com/2011/02/12/askie-all-wordpress-plugins/</a></p>
<p>&nbsp;</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="wordpress后台文章列表显示缩略图" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F8264">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535337.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress后台文章列表显示缩略图</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="6个最佳房地产 WordPress 主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F8264">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4025472.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">6个最佳房地产 WordPress 主题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题(模板)修改教程(十一):使用文章缩略图功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F8264">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535026.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题(模板)修改教程(十一):使用文章缩略图功能</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress文章缩略图使用详解" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F8264">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17534338.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress文章缩略图使用详解</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/8264/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>6个最佳房地产 WordPress 主题</title>
		<link>http://blog.haohtml.com/archives/6752</link>
		<comments>http://blog.haohtml.com/archives/6752#comments</comments>
		<pubDate>Mon, 22 Nov 2010 13:19:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[收藏文章]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/?p=6752</guid>
		<description><![CDATA[WordPress 并不是一个简单的博客程序，它能干的事情非常多。如果你是一个地产中介，想通过互联网出售房子，那么你也可以通过 WordPress 来实现，是的，选择一个适合房地产的 WordPress 主题，就会让你事半功倍，并且现在网络上有非常多的和房地产相关的 WordPress 主题，并且还集成了房地产相关的功能（如位置，价格，大小，几房几厅，经纪人，代理等）。所以今天就给大家介绍下5个非常不错的房地产相关的 WordPress 主题。 本文翻译自 14 Real Estate WordPress Themes，原文有 14 个房地产相关的 WordPress 主题，这里节选其中最好的 6 个。 1. Estate (by Woothemes) Estate 是一个非常强大的，但是管理非常方便的适合房地产中介 WordPress 主题，这个主题使用了 WordPress 3.0 开始的自定义日志类型和自定义分类模式这些高级功能，使得在 WordPress 后台能够有个真正的“房地产”的功能，并且灵活的页面模板高级搜索功能，以及集成了 Google 地图，灵活的房地产图片管理，你会发现这款主题是非常值得取用的。 Estate 详细介绍 2. Real Estate Theme (from templatic) Real Estate Theme 是有史以来最好的房地产相关的 WordPress 主题，它拥有让你创建房地产网站的所有功能，并且该主题设计非常典雅，结构和布局非常专业。 Real Estate Theme 详细介绍 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress主题(模板)修改教程(十一):使用文章缩略图功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535026.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题(模板)修改教程(十一):使用文章缩略图功能</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress文章缩略图使用详解" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17534338.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress文章缩略图使用详解</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wordpress后台文章列表显示缩略图" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535337.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress后台文章列表显示缩略图</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress添加“特色图片”功能并调用" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12632&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress添加“特色图片”功能并调用</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>WordPress 并不是一个简单的博客程序，它能干的事情非常多。如果你是一个地产中介，想通过互联网出售房子，那么你也可以通过  WordPress 来实现，是的，选择一个适合房地产的 WordPress 主题，就会让你事半功倍，并且现在网络上有非常多的和房地产相关的  WordPress  主题，并且还集成了房地产相关的功能（如位置，价格，大小，几房几厅，经纪人，代理等）。所以今天就给大家介绍下5个非常不错的房地产相关的  WordPress 主题。</p>
<p>本文翻译自 <a title="Permalink to 14 Real Estate WordPress Themes" rel="bookmark" href="http://theme10.com/best-real-estate-wordpress-themes/" target="_blank">14   Real Estate WordPress Themes</a>，原文有 14 个房地产相关的 WordPress 主题，这里节选其中最好的 6 个。<span id="more-6752"></span></p>
<h2><a name="toc-1"></a>1. Estate <small>(by <a href="http://www.woothemes.com/amember/go.php?r=1023&amp;i=l1" target="_blank">Woothemes</a>)</small></h2>
<p><a href="http://www.woothemes.com/amember/go.php?r=1023&amp;i=l80" target="_blank">Estate </a> 是一个非常强大的，但是管理非常方便的适合房地产中介 WordPress 主题，这个主题使用了 WordPress 3.0  开始的自定义日志类型和自定义分类模式这些高级功能，使得在 WordPress  后台能够有个真正的“房地产”的功能，并且灵活的页面模板高级搜索功能，以及集成了 Google  地图，灵活的房地产图片管理，你会发现这款主题是非常值得取用的。</p>
<p><a href="http://www.woothemes.com/amember/go.php?r=1023&amp;i=l80" target="_blank"><img src="http://theme10.com/wp-content/uploads/theme10/woothemes-estate.jpg" alt="Woothemes Estate" /></a><br />
<a href="http://www.woothemes.com/amember/go.php?r=1023&amp;i=l80" target="_blank">Estate 详细介绍</a></p>
<h2><a name="toc-2"></a>2. Real Estate Theme <small>(from <a href="http://templatic.com/members/go.php?r=6153&amp;i=l0" target="_blank">templatic</a>)</small></h2>
<p><a href="http://templatic.com/members/go.php?r=6153&amp;i=l35" target="_blank">Real Estate Theme</a> 是有史以来最好的房地产相关的 WordPress 主题，它拥有让你创建房地产网站的所有功能，并且该主题设计非常典雅，结构和布局非常专业。</p>
<p><a href="http://templatic.com/members/go.php?r=6153&amp;i=l35" target="_blank"><img src="http://fairyfish.net/wp-content/plugins/all-in-one/images/grey.gif" alt="Real Estate Theme " /></a><br />
<a href="http://templatic.com/members/go.php?r=6153&amp;i=l35" target="_blank">Real Estate Theme 详细介绍</a></p>
<h2><a name="toc-3"></a>3. AgentPress Theme <small>(from <a href="https://www.e-junkie.com/ecom/gb.php?cl=10214&amp;c=ib&amp;aff=30098">StudioPress.</a>)</small></h2>
<p><a href="https://www.e-junkie.com/ecom/gb.php?ii=643385&amp;c=ib&amp;aff=30098&amp;cl=10214">AgentPress theme</a> 是那些想在互联网上进行营销，打败竞争对手的房地产代理的最佳选择，它有专业的设计和经过了全面的优化。</p>
<p><a href="https://www.e-junkie.com/ecom/gb.php?ii=643385&amp;c=ib&amp;aff=30098&amp;cl=10214"><img src="http://theme10.com/wp-content/uploads/theme10/agentpress.jpg" alt="Real Estate Theme " /></a><br />
<a href="https://www.e-junkie.com/ecom/gb.php?ii=643385&amp;c=ib&amp;aff=30098&amp;cl=10214">AgentPress theme  详细介绍</a></p>
<h2><a name="toc-4"></a>4. Main Street Real Estate <small>(from <a href="https://www.e-junkie.com/ecom/gb.php?cl=48418&amp;c=ib&amp;aff=30098">Gorilla Themes)</a></small></h2>
<p><a href="https://www.e-junkie.com/ecom/gb.php?ii=589678&amp;c=ib&amp;aff=30098&amp;cl=48418">Main Street</a> 是一个房地产相关的主题，这个主题让你非常容易添加，修改，删除房产信息，并且它还提供 8 种颜色以及非常专业的布局。</p>
<p><a href="https://www.e-junkie.com/ecom/gb.php?ii=589678&amp;c=ib&amp;aff=30098&amp;cl=48418"><img src="http://theme10.com/wp-content/uploads/theme10/mainstreet.jpg" alt="Mainstreet Real Estate Theme " /></a><br />
<a href="https://www.e-junkie.com/ecom/gb.php?ii=589678&amp;c=ib&amp;aff=30098&amp;cl=48418">Main Street  详细介绍</a></p>
<h2><a name="toc-5"></a>5. deCondo <small>(from <a href="https://www.e-junkie.com/ecom/gb.php?cl=66253&amp;c=ib&amp;aff=30098">ThemeShift</a>)</small></h2>
<p><a href="https://www.e-junkie.com/ecom/gb.php?ii=597286&amp;c=ib&amp;aff=30098&amp;cl=66253">deCondo</a> 是一个简洁典雅的 WordPress 房地产主题，搜索界面，多代理支持等许多功能让你非常容易建立你自己的房地产网站。</p>
<p><a href="https://www.e-junkie.com/ecom/gb.php?ii=261509&amp;c=ib&amp;aff=30098&amp;cl=66253"><img src="http://theme10.com/wp-content/uploads/theme10/decasa.jpg" alt="deCasa" /></a><br />
<a href="https://www.e-junkie.com/ecom/gb.php?ii=597286&amp;c=ib&amp;aff=30098&amp;cl=66253">deCondo  详细介绍</a></p>
<h2><a name="toc-6"></a>6. Elegant Real Estate</h2>
<p><a href="http://themeforest.net/item/elegant-real-estate/74277?ref=denishua" target="_blank">Elegant Real Estate</a> 这个 WordPress 主题是专门为房地产网站而建的，它有房地产过滤功能，图片幻灯片，以及让你定制主题的后台管理选项。</p>
<p><a href="http://themeforest.net/item/elegant-real-estate/74277?ref=denishua" target="_blank"><img src="http://fairyfish.net/wp-content/plugins/all-in-one/images/grey.gif" alt="Broker Real Estate Theme " /></a><br />
<a href="http://themeforest.net/item/elegant-real-estate/74277?ref=denishua" target="_blank">Elegant Real Estate  详细介绍</a></p>
<p>当然这些主题都是英文版，中文情况下可能会有一些不适应的情况，如果你想制作一款针对中文市场的房地产 WordPress 主题，那么你也可以<a href="http://wpjam.com/contact" target="_blank">联系我们</a>。</p>
<p>本文翻译自 <a title="Permalink to 14 Real Estate WordPress Themes" rel="bookmark" href="http://theme10.com/best-real-estate-wordpress-themes/" target="_blank">14   Real Estate WordPress Themes</a>，原文有 14 个房地产相关的 WordPress 主题，这里节选其中最好的 6 个。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress主题(模板)修改教程(十一):使用文章缩略图功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12606&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535026.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题(模板)修改教程(十一):使用文章缩略图功能</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress文章缩略图使用详解" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12603&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17534338.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress文章缩略图使用详解</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wordpress后台文章列表显示缩略图" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12607&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/18/17535337.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress后台文章列表显示缩略图</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress添加“特色图片”功能并调用" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12632&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F6752">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress添加“特色图片”功能并调用</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/6752/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx常用Rewrite(伪静态规则)</title>
		<link>http://blog.haohtml.com/archives/5634</link>
		<comments>http://blog.haohtml.com/archives/5634#comments</comments>
		<pubDate>Thu, 09 Sep 2010 02:09:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[服务器类]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[ecshop]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[phpcms]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[sablog]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/?p=5634</guid>
		<description><![CDATA[信现在大部分用Linux VPS的朋友都在使用这个迅速传播的Nginx，今天就整理一下最常见的PHP程序的Rewrite(伪静态规则)。 WordPress： location / { index index.html index.php; if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; } } PHPCMS： location / { ###以下为PHPCMS 伪静态化rewrite规则 rewrite ^(.*)show-([0-9]+)-([0-9]+)\.html$ $1/show.php?itemid=$2&#38;page=$3; rewrite ^(.*)list-([0-9]+)-([0-9]+)\.html$ $1/list.php?catid=$2&#38;page=$3; rewrite ^(.*)show-([0-9]+)\.html$ $1/show.php?specialid=$2; ####以下为PHPWind 伪静态化rewrite规则 rewrite ^(.*)-htm-(.*)$ $1.php?$2 last; rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="nginx rewrite规则和参考" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5631&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5634">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nginx rewrite规则和参考</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="nginx下UCH和DZ的rewrite规则" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F2303&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5634">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nginx下UCH和DZ的rewrite规则</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="nginx: [warn] the &quot;log_format&quot; directive may be used only on &quot;http&quot; level ．．．解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12842&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5634">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nginx: [warn] the &quot;log_format&quot; directive may be used only on &quot;http&quot; level ．．．解决办法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="nginx图片服务器的架构方案[2009-03-18 01:15:06]" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F1363&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5634">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4022398.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nginx图片服务器的架构方案[2009-03-18 01:15:06]</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>信现在大部分用Linux VPS的朋友都在使用这个迅速传播的<a href="http://nginx.me/" target="_blank">Nginx</a>，今天就整理一下最常见的PHP程序的Rewrite(伪静态规则)。</p>
<p>WordPress：</p>
<p>location / {<br />
index index.html index.php;<br />
if (-f $request_filename/index.html){<br />
rewrite (.*) $1/index.html break;<br />
}<br />
if (-f $request_filename/index.php){<br />
rewrite (.*) $1/index.php;<br />
}<br />
if (!-f $request_filename){<br />
rewrite (.*) /index.php;<br />
}<br />
}</p>
<p><span id="more-5634"></span>PHPCMS：</p>
<p>location / {<br />
###以下为PHPCMS 伪静态化rewrite规则<br />
rewrite ^(.*)show-([0-9]+)-([0-9]+)\.html$ $1/show.php?itemid=$2&amp;page=$3;<br />
rewrite ^(.*)list-([0-9]+)-([0-9]+)\.html$ $1/list.php?catid=$2&amp;page=$3;<br />
rewrite ^(.*)show-([0-9]+)\.html$ $1/show.php?specialid=$2;</p>
<p>####以下为PHPWind 伪静态化rewrite规则<br />
rewrite ^(.*)-htm-(.*)$ $1.php?$2 last;<br />
rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2 last;<br />
}</p>
<p>ECSHOP：</p>
<p>if (!-e $request_filename)<br />
{<br />
rewrite "^/index\.html" /index.php last;<br />
rewrite "^/category$" /index.php last;<br />
rewrite "^/feed-c([0-9]+)\.xml$” /feed.php?cat=$1 last;<br />
rewrite “^/feed-b([0-9]+)\.xml$” /feed.php?brand=$1 last;<br />
rewrite “^/feed\.xml$” /feed.php last;<br />
rewrite “^/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$” /category.php?id=$1&amp;brand=$2&amp;price_min=$3&amp;price_max=$4&amp;filter_attr=$5&amp;page=$6&amp;sort=$7&amp;order=$8 last;<br />
rewrite “^/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$” /category.php?id=$1&amp;brand=$2&amp;price_min=$3&amp;price_max=$4&amp;filter_attr=$5 last;<br />
rewrite “^/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$” /category.php?id=$1&amp;brand=$2&amp;page=$3&amp;sort=$4&amp;order=$5 last;<br />
rewrite “^/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$” /category.php?id=$1&amp;brand=$2&amp;page=$3 last;<br />
rewrite “^/category-([0-9]+)-b([0-9]+)(.*)\.html$” /category.php?id=$1&amp;brand=$2 last;<br />
rewrite “^/category-([0-9]+)(.*)\.html$” /category.php?id=$1 last;<br />
rewrite “^/goods-([0-9]+)(.*)\.html” /goods.php?id=$1 last;<br />
rewrite “^/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$” /article_cat.php?id=$1&amp;page=$2&amp;sort=$3&amp;order=$4 last;<br />
rewrite “^/article_cat-([0-9]+)-([0-9]+)(.*)\.html$” /article_cat.php?id=$1&amp;page=$2 last;<br />
rewrite “^/article_cat-([0-9]+)(.*)\.html$” /article_cat.php?id=$1 last;<br />
rewrite “^/article-([0-9]+)(.*)\.html$” /article.php?id=$1 last;<br />
rewrite “^/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html” /brand.php?id=$1&amp;cat=$2&amp;page=$3&amp;sort=$4&amp;order=$5 last;<br />
rewrite “^/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html” /brand.php?id=$1&amp;cat=$2&amp;page=$3 last;<br />
rewrite “^/brand-([0-9]+)-c([0-9]+)(.*)\.html” /brand.php?id=$1&amp;cat=$2 last;<br />
rewrite “^/brand-([0-9]+)(.*)\.html” /brand.php?id=$1 last;<br />
rewrite “^/tag-(.*)\.html” /search.php?keywords=$1 last;<br />
rewrite “^/snatch-([0-9]+)\.html$” /snatch.php?id=$1 last;<br />
rewrite “^/group_buy-([0-9]+)\.html$” /group_buy.php?act=view&amp;id=$1 last;<br />
rewrite “^/auction-([0-9]+)\.html$” /auction.php?act=view&amp;id=$1 last;<br />
rewrite “^/exchange-id([0-9]+)(.*)\.html$” /exchange.php?id=$1&amp;act=view last;<br />
rewrite “^/exchange-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$” /exchange.php?cat_id=$1&amp;integral_min=$2&amp;integral_max=$3&amp;page=$4&amp;sort=$5&amp;order=$6 last;<br />
rewrite ^/exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$” /exchange.php?cat_id=$1&amp;page=$2&amp;sort=$3&amp;order=$4 last;<br />
rewrite “^/exchange-([0-9]+)-([0-9]+)(.*)\.html$” /exchange.php?cat_id=$1&amp;page=$2 last;<br />
rewrite “^/exchange-([0-9]+)(.*)\.html$” /exchange.php?cat_id=$1 last;<br />
}</p>
<p>SHOPEX:</p>
<p>location / {<br />
if (!-e $request_filename) {<br />
rewrite ^/(.+\.(html|xml|json|htm|php|jsp|asp|shtml))$ /index.php?$1 last;<br />
}<br />
}</p>
<p>SaBlog 2.0：(感谢<a href="http://blog.is36.cn/" target="_blank">追寻36[正冰]博客</a>提供)</p>
<p># 只带月份的归档<br />
rewrite "^/date/([0-9]{6})/?([0-9]+)?/?$" /index.php?action=article&amp;setdate=$1&amp;page=$2 last;<br />
# 无分类翻页<br />
rewrite ^/page/([0-9]+)?/?$ /index.php?action=article&amp;page=$1 last;<br />
# 分类<br />
rewrite ^/category/([0-9]+)/?([0-9]+)?/?$ /index.php?action=article&amp;cid=$1&amp;page=$2 last;<br />
rewrite ^/category/([^/]+)/?([0-9]+)?/?$ /index.php?action=article&amp;curl=$1&amp;page=$2 last;<br />
# 归档、高级搜索<br />
rewrite ^/(archives|search|article|links)/?$ /index.php?action=$1 last;<br />
# 全部评论、标签列表、引用列表 带分页<br />
rewrite ^/(comments|tagslist|trackbacks|article)/?([0-9]+)?/?$ /index.php?action=$1&amp;page=$2 last;<br />
# tags<br />
rewrite ^/tag/([^/]+)/?([0-9]+)?/?$ /index.php?action=article&amp;item=$1&amp;page=$2 last;<br />
# 文章<br />
rewrite ^/archives/([0-9]+)/?([0-9]+)?/?$ /index.php?action=show&amp;id=$1&amp;page=$2 last;<br />
# RSS rewrite ^/rss/([0-9]+)?/?$ /rss.php?cid=$1 last;<br />
rewrite ^/rss/([^/]+)/?$ /rss.php?url=$1 last;<br />
# 用户 rewrite ^/uid/([0-9]+)/?([0-9]+)?/?$ /index.php?action=article&amp;uid=$1&amp;page=$2 last;<br />
rewrite ^/user/([^/]+)/?([0-9]+)?/?$ /index.php?action=article&amp;user=$1&amp;page=$2 last;<br />
# 地图文件<br />
rewrite sitemap.xml sitemap.php last;<br />
# 自定义链接<br />
rewrite ^(.*)/([0-9a-zA-Z\-\_]+)/?([0-9]+)?/?$ $1/index.php?action=show&amp;alias=$2&amp;page=$3 last;</p>
<p>Discuz 7：</p>
<p>rewrite ^/archiver/((fid|tid)-[\w\-]+\.html)$ /archiver/index.php?$1 last;<br />
rewrite ^/forum-([0-9]+)-([0-9]+)\.html$ /forumdisplay.php?fid=$1&amp;page=$2 last;<br />
rewrite ^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /viewthread.php?tid=$1&amp;extra=page\%3D$3&amp;page=$2 last;<br />
rewrite ^/space-(username|uid)-(.+)\.html$ /space.php?$1=$2 last;<br />
rewrite ^/tag-(.+)\.html$ /tag.php?name=$1 last;</p>
<p>Typecho：</p>
<p>location / {<br />
index index.html index.php;<br />
if (-f $request_filename/index.html){<br />
rewrite (.*) $1/index.html break;<br />
}<br />
if (-f $request_filename/index.php){<br />
rewrite (.*) $1/index.php;<br />
}<br />
if (!-f $request_filename){<br />
rewrite (.*) /index.php;<br />
}<br />
}</p>
<p>今天暂时整理这些，以后不定期更新。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="nginx rewrite规则和参考" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5631&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5634">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nginx rewrite规则和参考</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="nginx下UCH和DZ的rewrite规则" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F2303&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5634">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nginx下UCH和DZ的rewrite规则</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="nginx: [warn] the &quot;log_format&quot; directive may be used only on &quot;http&quot; level ．．．解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F12842&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5634">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nginx: [warn] the &quot;log_format&quot; directive may be used only on &quot;http&quot; level ．．．解决办法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="nginx图片服务器的架构方案[2009-03-18 01:15:06]" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F1363&from=http%3A%2F%2Fblog.haohtml.com%2Farchives%2F5634">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/22/4022398.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">nginx图片服务器的架构方案[2009-03-18 01:15:06]</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/archives/5634/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

