<?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>李清海&#039;s blog &#187; Wordpress</title>
	<atom:link href="http://www.liqinghai.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.liqinghai.com</link>
	<description>Just another wordpress weblog</description>
	<lastBuildDate>Tue, 08 Jun 2010 06:14:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	
<!-- Start Of Script Generated By WP-PostViews Plus -->
<script type='text/javascript' src='http://www.liqinghai.com/wp-includes/js/jquery/jquery.js?ver=1.4.2'></script>
<script type="text/javascript">
/* <![CDATA[ */
/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus -->
	<item>
		<title>WordPress 插件推荐：WP Subdomains</title>
		<link>http://www.liqinghai.com/wordpress-plugin-wp-subdomains/</link>
		<comments>http://www.liqinghai.com/wordpress-plugin-wp-subdomains/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 01:27:48 +0000</pubDate>
		<dc:creator>grubylee</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Subdomains]]></category>

		<guid isPermaLink="false">http://www.liqinghai.com/?p=299</guid>
		<description><![CDATA[WordPress 默认的分类永久链接应该是http://www.domain.com/category/%category%/的三级目录形式，使用一些插件可以去掉URL中难看的category，使之成为http://www.domain.com/%category%/的二级目录形式。对于像我这样追求完美的人来说，URL较长，也不美观。而国内的一些CMS（内容管理程序）、论坛程序都支持了分类的二级域名功能，可以使用诸如http://subdomains.domain.com/的形式访问分类及分类下的文章。 二级域名与二级目录谁优谁劣？ 二级目录与二级域名哪个更利用收录 二级目录是依靠着主网域名权重，主域名收录完好，直接能加快二级目录收录，相比二级域名，二级域名在搜索引擎中相当独立的网站，收录中要比二级目录稍慢些，也就是二级目录更容易让搜索引擎收录，二域域名有时同样会进入搜索引擎考察期。 二级目录与二级域名的权重 二级目录的权重增加，可以提高主域名的权重，相反主域名的权重增加，也能带动二级目录的权重，举例，通常在搜索引擎搜索中，会发现常常一些目录分页要高于专业网站的排名，其它主要的原因，就是主域名的权重高所造成的，但如果你的网站比较权威，可以采用二级域名行式，二级域名更有利于细分化网站分类，有助于不同分类，不同二级域名的权重。 二级目录与二级域名的用户体验 二级目录的形式容易让用户记住首页网页，而二级域名的形式，更便于用户区分记下二级域名的网址，更利用用户直接输入网址访问，而且对而类别比较多，比较专业，采用二级域名行式，可以对类别，地区，行业进行详细的划分，有利用提高二级域名的网站权威度。 综合考虑，如果你的WordPress类别不是很多，建议采用二级目录的形式，这样更有利于主打品牌的推广和提高网站权重。如果你是个类别比较多，内容比较丰富的网站（如使用WordPress搭建的CMS），建议你采用二级域名的形式，这样更有利分类的独立运营推广，提高用户体验，同时如果二级域名被搜索引擎降级，对主站影响不会很大，而二级目录如果被搜索引擎处理，会直接影响主站的权重，二级目录更有力于主站主域名，而二级域名形式，能更细分化，专业化，更利于整站同步提高，品牌的塑造。 而就我个人而言，出于美观的考虑，另一方面可以说是得瑟，我推荐使用二级域名的形式。 那么怎样在WordPress下实现分类的二级域名功能呢？废话不多说了，请看WP Subdomains 插件简介： WP Subdomains 可设置使用子域名访问 WordPress 的分类、pages 页面、作者页面。 为分类页面指定子域名 为pages页面指定子域名 为作者存档页指定子域名 为每个子域指定不同的风格 插件下载: Plugin homepage &#124; From WordPress 适用版本: WordPress 2.7 或以上 安装方法: 1. 将压缩包解压到 {WordPress 根目录}/wp-content/plugins/ 2. 登录你的 WordPress 后台, 到 Plugins 页面激活插件 WP Subdomains 使用方法： 首先，你需要服务器或者虚拟空间支持绑定多个域名或泛域名支持。必须先在主域的目录上绑定*.domain.com，或者将子域名都绑定在该目录。如我给 The Yaoyao Blog 安装后，首页的地址是http://www.yaoyao.info/、奋斗分类的地址是http://strive.yaoyao.info/、该分类下文章“假期长长”的地址为http://strive.yaoyao.info/jiaqichangchang/，是不是很帅呢？后台的设置就不一一说明了。装上后自己慢慢琢磨吧。不是很难，有问题的话，可以留言。 插件本地化： [...]]]></description>
			<content:encoded><![CDATA[<p><a class="highslide-image" onclick="return hs.expand(this);" href="http://pic.liqinghai.com/2010/01/wordpress.png"><img class="alignright" title="Click to enlarge" src="http://pic.liqinghai.com/2010/01/wordpress-150x150.png" alt="image" /></a>WordPress 默认的分类永久链接应该是http://www.domain.com/category/%category%/的三级目录形式，使用一些插件可以去掉URL中难看的category，使之成为http://www.domain.com/%category%/的二级目录形式。对于像我这样追求完美的人来说，URL较长，也不美观。而国内的一些CMS（内容管理程序）、论坛程序都支持了分类的二级域名功能，可以使用诸如http://subdomains.domain.com/的形式访问分类及分类下的文章。</p>
<p><strong>二级域名与二级目录谁优谁劣？</strong></p>
<p><strong>二级目录与二级域名哪个更利用收录</strong><br />
二级目录是依靠着主网域名权重，主域名收录完好，直接能加快二级目录收录，相比二级域名，二级域名在搜索引擎中相当独立的网站，收录中要比二级目录稍慢些，也就是二级目录更容易让搜索引擎收录，二域域名有时同样会进入搜索引擎考察期。</p>
<p><strong><span id="more-299"></span>二级目录与二级域名的权重</strong><br />
二级目录的权重增加，可以提高主域名的权重，相反主域名的权重增加，也能带动二级目录的权重，举例，通常在搜索引擎搜索中，会发现常常一些目录分页要高于专业网站的排名，其它主要的原因，就是主域名的权重高所造成的，但如果你的网站比较权威，可以采用二级域名行式，二级域名更有利于细分化网站分类，有助于不同分类，不同二级域名的权重。</p>
<p><strong>二级目录与二级域名的用户体验</strong><br />
二级目录的形式容易让用户记住首页网页，而二级域名的形式，更便于用户区分记下二级域名的网址，更利用用户直接输入网址访问，而且对而类别比较多，比较专业，采用二级域名行式，可以对类别，地区，行业进行详细的划分，有利用提高二级域名的网站权威度。</p>
<p>综合考虑，如果你的WordPress类别不是很多，建议采用二级目录的形式，这样更有利于主打品牌的推广和提高网站权重。如果你是个类别比较多，内容比较丰富的网站（如使用<a href="http://www.liqinghai.com/tag/wp/">WordPress</a>搭建的CMS），建议你采用二级域名的形式，这样更有利分类的独立运营推广，提高用户体验，同时如果二级域名被搜索引擎降级，对主站影响不会很大，而二级目录如果被搜索引擎处理，会直接影响主站的权重，二级目录更有力于主站主域名，而二级域名形式，能更细分化，专业化，更利于整站同步提高，品牌的塑造。</p>
<p>而就我个人而言，出于美观的考虑，另一方面可以说是得瑟，我推荐使用二级域名的形式。</p>
<p>那么怎样在WordPress下实现分类的二级域名功能呢？废话不多说了，请看<a href="http://www.liqinghai.com/wp-subdomains/">WP Subdomains</a></p>
<p><strong>插件简介：</strong></p>
<p>WP Subdomains 可设置使用子域名访问 WordPress 的分类、pages 页面、作者页面。</p>
<p>为分类页面指定子域名</p>
<p>为pages页面指定子域名</p>
<p>为作者存档页指定子域名</p>
<p>为每个子域指定不同的风格</p>
<p><strong>插件下载: </strong><a href="http://webdev.casualgenius.com/projects/wordpress-subdomains/">Plugin homepage</a> | <a href="http://downloads.wordpress.org/plugin/wordpress-subdomains.0.6.6.zip">From WordPress</a></p>
<p><strong>适用版本:</strong></p>
<p>WordPress 2.7 或以上</p>
<p><strong>安装方法:</strong></p>
<p>1. 将压缩包解压到 {WordPress 根目录}/wp-content/plugins/</p>
<p>2. 登录你的 WordPress 后台, 到 Plugins 页面激活插件 WP Subdomains</p>
<p><strong>使用方法：</strong></p>
<p>首先，你需要服务器或者虚拟空间支持绑定多个域名或泛域名支持。必须先在主域的目录上绑定*.domain.com，或者将子域名都绑定在该目录。如我给<a href="http://www.yaoyao.info/"> The Yaoyao Blog</a> 安装后，首页的地址是<a href="http://www.yaoyao.info/">http://www.yaoyao.info/</a>、奋斗分类的地址是<a href="http://strive.yaoyao.info/">http://strive.yaoyao.info/</a>、该分类下文章“假期长长”的地址为<a href="http://strive.yaoyao.info/jiaqichangchang/">http://strive.yaoyao.info/jiaqichangchang/</a>，是不是很帅呢？后台的设置就不一一说明了。装上后自己慢慢琢磨吧。不是很难，有问题的话，可以留言。</p>
<p><strong>插件本地化：</strong></p>
<p>目前 WP Subdomains 只支持英语，不过放心，近期我会制作中文语言包的。如果是CMS类站点的话，建议安装一下，毕竟装上后看起来比较炫、比较专业。 <img src='http://www.liqinghai.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':grin:' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.liqinghai.com/wordpress-plugin-wp-subdomains/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>WordPress Comment Fetion Alert 2.0.0 dev</title>
		<link>http://www.liqinghai.com/wordpress-comment-fetion-alert-2-0-0-dev/</link>
		<comments>http://www.liqinghai.com/wordpress-comment-fetion-alert-2-0-0-dev/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 16:51:36 +0000</pubDate>
		<dc:creator>grubylee</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Fetion]]></category>

		<guid isPermaLink="false">http://www.liqinghai.com/?p=242</guid>
		<description><![CDATA[Commnet Fetion Alert 是由 yinheli 同学发布的 WordPress 评论飞信提醒插件，使用该插件可以及时的将博客的留言信息发送把手机上，前提是移动手机并且开通飞信功能。超多评论的博客不推荐使用哦。 之前也和作者讨论过关于评论提醒时间段的问题，没想把今天就出了2.0版本，相对于之前的版本，增加了以下几项功能： 评论提醒的时间段设置功能，避免半夜发过来的提醒影响博主休息。时间限制不会漏掉提醒。 非时间区间内的信息将被缓存。等时间到了您设定的区间内，短信会自动发出。 提醒类型选择功能，可以自由选择是否对管理员的评论、已审核的评论、未审核的评论、以及spam发出提醒。 增加了黑白名单功能，特别关注某个人的留言话，可以把他的邮箱或昵称增加到白名单，不过白名单外的评论就不会再提醒了（推荐评论较多的博客使用）。同时也可以设置黑名单，某些人的评论不提醒。 安装方法： 解压上传到插件目录 后台激活 在后台管理-&#62;Tools(工具)-&#62;飞信短信提醒( Comment Fetion Alert ) 里设置保存 安装完后，填写自己的手机号和飞信密码即可，建议发送一条测试短信。 同时，觉得是不是应该可以设置两个时间段，有的人中午午休也不想收到提醒嘛。另外，不少博主貌似都是使用gmail作为管理员邮箱，可不可以设置若gtalk在线的话，不使用短信提醒呢？ 下载地址：Comment Fetion Alert 2.0.0 dev 发布 最后感恩作者能够提供这么优秀的插件，祝考研一路顺风！]]></description>
			<content:encoded><![CDATA[<p>Commnet Fetion Alert 是由 <a href="http://philna.com">yinheli </a>同学发布的 WordPress 评论飞信提醒插件，使用该插件可以及时的将博客的留言信息发送把手机上，前提是移动手机并且开通飞信功能。超多评论的博客不推荐使用哦。</p>
<p>之前也和作者讨论过关于评论提醒时间段的问题，没想把今天就出了2.0版本，相对于之前的版本，增加了以下几项功能：</p>
<p>评论提醒的时间段设置功能，避免半夜发过来的提醒影响博主休息。时间限制不会漏掉提醒。 非时间区间内的信息将被缓存。等时间到了您设定的区间内，短信会自动发出。<br />
<span id="more-242"></span></p>
<p>提醒类型选择功能，可以自由选择是否对管理员的评论、已审核的评论、未审核的评论、以及spam发出提醒。<a class="highslide-image" onclick="return hs.expand(this);" href="http://pic.liqinghai.com/2009/11/Comment-Fetion-Alert-Options-Page.gif"><img class="alignright" title="Click to enlarge" src="http://pic.liqinghai.com/2009/11/Comment-Fetion-Alert-Options-Page-300x257.gif" alt="image" /></a></p>
<p>增加了黑白名单功能，特别关注某个人的留言话，可以把他的邮箱或昵称增加到白名单，不过白名单外的评论就不会再提醒了（推荐评论较多的博客使用）。同时也可以设置黑名单，某些人的评论不提醒。</p>
<p>安装方法：</p>
<ol>
<li>解压上传到插件目录</li>
<li>后台激活</li>
<li>在后台管理-&gt;Tools(工具)-&gt;飞信短信提醒( Comment Fetion Alert ) 里设置保存</li>
</ol>
<p>安装完后，填写自己的手机号和飞信密码即可，建议发送一条测试短信。</p>
<p>同时，觉得是不是应该可以设置两个时间段，有的人中午午休也不想收到提醒嘛。另外，不少博主貌似都是使用<a href="http://googlesupport.org/">gmail</a>作为管理员邮箱，可不可以设置若gtalk在线的话，不使用短信提醒呢？</p>
<p>下载地址：<a title="Comment Fetion Alert 2.0.0 dev 发布" rel="bookmark inlinks" href="http://philna.com/2009/11/comment-fetion-alert-2-0-0-dev/">Comment Fetion Alert 2.0.0 dev 发布</a></p>
<p>最后感恩作者能够提供这么优秀的插件，祝考研一路顺风！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liqinghai.com/wordpress-comment-fetion-alert-2-0-0-dev/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>为WordPress添加keyword和description标签</title>
		<link>http://www.liqinghai.com/add-keyword-and-description-for-wordpress/</link>
		<comments>http://www.liqinghai.com/add-keyword-and-description-for-wordpress/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 05:58:29 +0000</pubDate>
		<dc:creator>grubylee</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.liqinghai.com/?p=240</guid>
		<description><![CDATA[刚刚查看我博客源代码的时候，发现没有keyword和description标签，而Google索引的首页描述，经常是我的第一篇文章的内容，并且没有关键字。而文章页面的快照是内容的前100字，也没有关键字。我没有安装SEO插件。还是觉得有必要进行优化下。 下面以我的英文博客Google Support Blog为例，给wordpress添加keyword和description属性。 首先找你主题文件夹里的header.php，部分主题可能是head.php 找到title属性，并在其后面添加如下代码： &#60;?php if &#40;is_home&#40;&#41;&#41;&#123; $description = &#34;Google Support Blog Focus on Google technology!&#34;; $keywords = &#34;Google Docs,Google Chrome,Chrome theme,Chrome plugin,Google Analystic&#34;; &#125; elseif &#40;is_single&#40;&#41;&#41;&#123; $description = substr&#40;strip_tags&#40;$post-&#62;post_content&#41;,0,220&#41;; $keywords = &#34;&#34;; $tags = wp_get_post_tags&#40;$post-&#62;ID&#41;; foreach &#40;$tags as $tag &#41; &#123; $keywords = $keywords . $tag-&#62;name . &#34;, &#34;; &#125; &#125; ?&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>刚刚查看我博客源代码的时候，发现没有keyword和description标签，而Google索引的首页描述，经常是我的第一篇文章的内容，并且没有关键字。而文章页面的快照是内容的前100字，也没有关键字。我没有安装SEO插件。还是觉得有必要进行优化下。</p>
<p>下面以我的英文博客<a href="http://googlesupport.org">Google Support Blog</a>为例，给wordpress添加keyword和description属性。</p>
<p>首先找你主题文件夹里的header.php，部分主题可能是head.php</p>
<p>找到title属性，并在其后面添加如下代码：</p>
<p><span id="more-240"></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> 
    <span style="color: #000088;">$description</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Google Support Blog Focus on Google technology!&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$keywords</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Google Docs,Google Chrome,Chrome theme,Chrome plugin,Google Analystic&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>    
    <span style="color: #000088;">$description</span> <span style="color: #339933;">=</span>  <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">220</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$keywords</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>        
    <span style="color: #000088;">$tags</span> <span style="color: #339933;">=</span> wp_get_post_tags<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$tags</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$tag</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$keywords</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$keywords</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$tag</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;, &quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span> 
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;meta name=&quot;keywords&quot; content=&quot;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$keywords</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
&lt;meta name=&quot;description&quot; content=&quot;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$description</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;</pre></div></div>

<p>那么google索引的首页描述应该为“Google Support Blog Focus on Google technology!”，首页关键字应该是“Google Docs,Google Chrome,Chrome theme,Chrome plugin,Google Analystic&#8221;。而单页面的话描述内容是文章的前200个字符。关键字则是文章的TAG。大家可以查看我的源文件看看效果。当然你也可以为标签，分类等页面添加keyword、description标签，方法类似啦</p>
<p>至于原理，我就不在这里卖弄了。注意使用的时候把描述和关键字替换成自己的。 <img src='http://www.liqinghai.com/wp-includes/images/smilies/icon_razz.gif' alt=':razz:' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.liqinghai.com/add-keyword-and-description-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>WordPress 主题推荐：ClassiPress</title>
		<link>http://www.liqinghai.com/wordpress-theme-classipress/</link>
		<comments>http://www.liqinghai.com/wordpress-theme-classipress/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 16:41:15 +0000</pubDate>
		<dc:creator>grubylee</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Theme]]></category>

		<guid isPermaLink="false">http://www.liqinghai.com/?p=228</guid>
		<description><![CDATA[ClassiPress是一款商业主题，可以说是将WordPress打造成了一个分类广告系统，商务风格，自带了联系表单和投稿系统。个人很喜欢他的块状风格，以及他的投稿系统，喜欢的童鞋可以一试。 演示地址： Live Demo Version:2.9.2 fixes: -centered modal form message when registration is required (removed width: 960px; from master.css line 120) -fixed another continue button bug on step 1 of modal form. (process_form_ajax.php multiple lines starting at 19) -fixed total live ad counter on dashboard page (tpl-dashboard.php multiple lines 67 thru 97) -fixed spelling error [...]]]></description>
			<content:encoded><![CDATA[<p><a class="highslide-image" onclick="return hs.expand(this);" href="http://pic.liqinghai.com//2009/09/classipress-theme.jpg"><img class="alignright" title="Click to enlarge" src="http://pic.liqinghai.com//2009/09/classipress-theme-212x300.jpg" alt="image" /></a>ClassiPress是一款商业主题，可以说是将WordPress打造成了一个分类广告系统，商务风格，自带了联系表单和投稿系统。个人很喜欢他的块状风格，以及他的投稿系统，喜欢的童鞋可以一试。</p>
<p>演示地址： <a href="http://wpclassipress.com/demo/">Live Demo</a></p>
<p>Version:2.9.2</p>
<p>fixes:</p>
<p>-centered modal form message when registration is required (removed width: 960px; from master.css line 120)</p>
<p>-fixed another continue button bug on step 1 of modal form. (process_form_ajax.php multiple lines starting at 19)</p>
<p>-fixed total live ad counter on dashboard page (tpl-dashboard.php multiple lines 67 thru 97)</p>
<p>-fixed spelling error on ad form page (highlighed to highlighted)</p>
<p><span id="more-228"></span></p>
<p>-rolled back modal form to slider form</p>
<p>-added * next to required fields on ad edit page. Removed mandatory check for phone &amp; moved location field up (tpl-edit-ad.php)</p>
<p>-fixed other ads listed by author section so it shows all live ads by author (author.php)</p>
<p>-added localization tag around &#8220;Categories&#8221; sidebar text (tpl-edit-ad.php)</p>
<p>-tightened up children sidebar li elements. Padded top/bottom to space out more. (master.css lines 93 and added line 107 &amp; 141)</p>
<p>-fixed form so field values aren&#8217;t reset if error is shown. (post-form.php)</p>
<p>-included currency symbol on paypal confirmation total. (post-form.php line 67)</p>
<p>-aligned sidebar lines under h2 text instead of above. Affects all .css files.</p>
<p>changes:</p>
<p>-changed .classform and added .adfields to css. Moved field width to html instead of within .css</p>
<p>-added &#8220;x&#8221; to close error box and #closelink elements. (post-form.php line 10 &amp; master.css )</p>
<p>-updated bundled plugins to the latest versions</p>
<p>-dynamically create and find wp upload folder for image uploads (form_process.php line 80ish).</p>
<p>-create friendly image names when uploaded with post. Now uses part of ad title for increased SEO. (New function in functions.php lines 38-41 &amp; form_process line 83ish)</p>
<p><strong><span style="color: #008e00;">下载地址：</span></strong><a href="http://pic.liqinghai.com/2009/09/classipress-2.9.2.zip"> [ 下载地址1 ]</a><a href="http://wpclassipress.com/demo/"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.liqinghai.com/wordpress-theme-classipress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Yahoo MeMe for WordPress：Yahoo MeMe 的 WordPress插件</title>
		<link>http://www.liqinghai.com/yahoo-meme-plugin-for-wordpress/</link>
		<comments>http://www.liqinghai.com/yahoo-meme-plugin-for-wordpress/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 06:22:58 +0000</pubDate>
		<dc:creator>grubylee</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Yahoo MeMe]]></category>

		<guid isPermaLink="false">http://www.liqinghai.com/?p=189</guid>
		<description><![CDATA[这两天，给几个童鞋发送了Yahoo MeMe的邀请码，基于MeMe的娱乐性和童鞋们的新鲜感，MeMe还是很受欢迎的。我也趁机抢注了超炫的ID：WP，大家可以Follow下。 一直想把Yahoo MeMe的更新同步到WordPress博客上，今天终于发现由Antonio Carlos Silveira开发的Yahoo! Meme for WordPress插件。请看介绍： 插件简介 Yahoo! Meme Plugin for WordPress 可以使用WordPress自带的Widget 小工具WordPress博客上增加一个Yahoo! Meme 的更新列表。 点此下载Yahoo MeMe for WordPress 插件特点 简单的，可定制化的 支持Widget小工具 使用WordPress资源（不需要额外安装程序） 多样化的Widgets小工具 可读取Yahoo! Meme文章里的图片、视频 自动调整图片和视频尺寸 安装 1.上传yahoomeme-for-wordpress文件夹到{WordPress 根目录}/wp-content/plugins/ 2. 登录你的 WordPress 后台, 到 Plugins 页面激活插件 Yahoo MeMe for WordPress 使用 如果使用WordPress Widgets小工具的话，拖曳widget到sidebar并配置； 若未启用widgets，请使用下面的代码显示Yahoo! Meme公开的日志。 meme_posts &#40; 'username'&#41;; 定制化 插件提供下列的CSS类： [...]]]></description>
			<content:encoded><![CDATA[<p>这两天，给几个童鞋发送了<a title="5个Yahoo MeMe邀请码" href="http://www.liqinghai.com/5-yahoo-meme-invitation-code/">Yahoo MeMe的邀请码</a>，基于MeMe的娱乐性和童鞋们的新鲜感，MeMe还是很受欢迎的。我也趁机抢注了超炫的ID：<a title="WordPress" href="http://meme.yahoo.com/wp">WP</a>，大家可以Follow下。</p>
<p>一直想把<a href="http://www.liqinghai.com/tag/yahoo-meme/">Yahoo MeMe</a>的更新同步到<a title="WordPress" href="http://www.liqinghai.com/tag/wordpress/">WordPress</a>博客上，今天终于发现由<a href="http://www.acarlos.com.br/blog/">Antonio Carlos Silveira</a>开发的Yahoo! Meme for WordPress插件。请看介绍：</p>
<p><strong>插件简介</strong></p>
<p>Yahoo! Meme Plugin for WordPress 可以使用WordPress自带的Widget 小工具WordPress博客上增加一个Yahoo! Meme 的更新列表。</p>
<p><a href="http://pic.liqinghai.com/2009/09/yahoomeme-for-wordpress1.zip">点此下载Yahoo MeMe for WordPress</a></p>
<p><span id="more-189"></span></p>
<p><strong>插件特点</strong></p>
<ul>
<li>简单的，可定制化的</li>
<li>支持Widget小工具</li>
<li>使用WordPress资源（不需要额外安装程序）</li>
<li>多样化的Widgets小工具</li>
<li>可读取Yahoo! Meme文章里的图片、视频</li>
<li>自动调整图片和视频尺寸</li>
</ul>
<p><strong>安装</strong></p>
<p>1.上传yahoomeme-for-wordpress文件夹到{WordPress 根目录}/wp-content/plugins/<br />
2. 登录你的 WordPress 后台, 到 Plugins 页面激活插件 Yahoo MeMe for WordPress</p>
<p><strong>使用</strong></p>
<p>如果使用WordPress Widgets小工具的话，拖曳widget到sidebar并配置；</p>
<p><a href="../yahoo-meme-plugin-for-wordpress/"><img title="Yahoo MeMe Config" src="http://pic.liqinghai.com//2009/09/Yahoo-MeMe-Config.JPG" alt="Yahoo MeMe Config" width="332" height="276" /></a></p>
<p>若未启用widgets，请使用下面的代码显示Yahoo! Meme公开的日志。</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">meme_posts <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'username'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><strong>定制化</strong></p>
<p>插件提供下列的CSS类：</p>
<ul>
<li>ul.meme: the mainyahoomeme-for-wordpress plugin for WordPress ul (如果列表被激活)</li>
<li>li.meme-item: ul 列表样式（如果列表被激活）</li>
<li>. meme-timestamp: 控制发布时间span标签的类</li>
<li>a.meme-link:固定链接样式</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.liqinghai.com/yahoo-meme-plugin-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>20个WordPress的页脚设计示例</title>
		<link>http://www.liqinghai.com/20-great-wordpress-footer-designs-for-inspiration/</link>
		<comments>http://www.liqinghai.com/20-great-wordpress-footer-designs-for-inspiration/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 15:44:38 +0000</pubDate>
		<dc:creator>grubylee</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[footer]]></category>

		<guid isPermaLink="false">http://www.liqinghai.com/?p=157</guid>
		<description><![CDATA[使用 WordPress 可以搭建功强大的网络信息发布平台，但更多的是应用于个性化的博客。有许多设计师使用非传统的方式使用 WordPress 搭建博客。使用 WordPress 最聪明的用途在于设计一个具有创造性的页脚。相当于使用一些版权信息和一个简单的文本，设计师们发现了一些更好的方式装饰网站的页脚。现在，我想和大家分享一些设计新颖的 WordPress 页脚。 下面介绍的20个 WordPress 页脚，可以说是设计师的灵感清单。希望大家能够喜欢，并能对大家有所帮助。（请点击图片访问作者博客，部分可能需要翻墙。） 翻译自：20 great WordPress Footer Designs for Inspiration]]></description>
			<content:encoded><![CDATA[<p>使用 <a href="http://www.liqinghai.com/category/wordpress/">WordPress </a>可以搭建功强大的网络信息发布平台，但更多的是应用于个性化的博客。有许多设计师使用非传统的方式使用 <a href="http://www.liqinghai.com/category/wordpress/">WordPress </a>搭建博客。使用 <a href="http://www.liqinghai.com/category/wordpress/">WordPress </a>最聪明的用途在于设计一个具有创造性的页脚。相当于使用一些版权信息和一个简单的文本，设计师们发现了一些更好的方式装饰网站的页脚。现在，我想和大家分享一些设计新颖的 <a href="http://www.liqinghai.com/category/wordpress/">WordPress </a>页脚。</p>
<p>下面介绍的20个 <a href="http://www.liqinghai.com/category/wordpress/">WordPress </a>页脚，可以说是设计师的灵感清单。希望大家能够喜欢，并能对大家有所帮助。（请点击图片访问作者博客，部分可能需要翻墙。）</p>
<p><span id="more-157"></span></p>
<p style="text-align: center;"><a title="wordpress footer design inspiration" rel="nofollow" href="http://net.tutsplus.com/" target="_blank"><img class="aligncenter" title="nettuts_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/nettuts_wordpress_footer_design.jpg" alt="" width="500" height="251" /></a></p>
<p style="text-align: center;"><a title="awesome wordpress footer design" rel="nofollow" href="http://colorburned.com/" target="_blank"><img class="aligncenter" title="colorburned_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/colorburned_wordpress_footer_design.jpg" alt="" width="500" height="219" /></a></p>
<p style="text-align: center;"><a title="great wordpress footer design" rel="nofollow" href="http://www.makeuseof.com/" target="_blank"><img class="aligncenter" title="makeuseof_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/makeuseof_wordpress_footer_design.jpg" alt="" width="500" height="278" /></a></p>
<p style="text-align: center;"><a title="good wordpress footer designs" rel="nofollow" href="http://www.noupe.com/" target="_blank"><img class="aligncenter" title="noupe_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/noupe_wordpress_footer_design.gif" alt="" width="500" height="210" /></a></p>
<p style="text-align: center;"><a title="awesome wordpress footer design" rel="nofollow" href="http://www.smileycat.com/index.php" target="_blank"><img class="aligncenter" title="smileycat_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/smileycat_wordpress_footer_design.gif" alt="" width="500" height="200" /></a></p>
<p style="text-align: center;"><a title="inspirational wordpress footer design" rel="nofollow" href="http://www.blog.spoongraphics.co.uk/" target="_blank"><img class="aligncenter" title="spoongraphics_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/spoongraphics_wordpress_footer_design.gif" alt="" width="500" height="155" /></a></p>
<p style="text-align: center;"><a title="awesome wordpress footer design" rel="nofollow" href="http://wellmedicated.com/" target="_blank"><img class="aligncenter" title="wellmedicated_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/wellmedicated_wordpress_footer_design.gif" alt="" width="500" height="166" /></a></p>
<p style="text-align: center;"><a title="cool wordpress footer design" rel="nofollow" href="http://designm.ag/" target="_blank"><img class="aligncenter" title="designmag_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/designmag_wordpress_footer_design.jpg" alt="" width="500" height="179" /></a></p>
<p style="text-align: center;"><a title="awesome wordpress footer design" rel="nofollow" href="http://minnehahakendo.org/" target="_blank"><img class="aligncenter" title="minnehahakendo_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/minnehahakendo_wordpress_footer_design.jpg" alt="" width="500" height="144" /></a></p>
<p style="text-align: center;"><a title="cool wordpress footer design" rel="nofollow" href="http://robgoodlatte.com/" target="_blank"><img class="aligncenter" title="robgoodlatte_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/robgoodlatte_wordpress_footer_design.gif" alt="" width="500" height="119" /></a></p>
<p style="text-align: center;"><a title="awesome wordpress footer design" rel="nofollow" href="http://www.leemunroe.com/" target="_blank"><img class="aligncenter" title="leemunroe_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/leemunroe_wordpress_footer_design.jpg" alt="" width="500" height="155" /></a></p>
<p style="text-align: center;"><a title="awesome wordpress footer design" rel="nofollow" href="http://www.webdesignerwall.com/" target="_blank"><img class="aligncenter" title="webdesignerwall_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/webdesignerwall_wordpress_footer_design.gif" alt="" width="500" height="183" /></a></p>
<p style="text-align: center;"><a title="awesome wordpress footer design" rel="nofollow" href="http://andresgallego.es/" target="_blank"><img class="aligncenter" title="andresgallego_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/andresgallego_wordpress_footer_design.jpg" alt="" width="500" height="172" /></a></p>
<p style="text-align: center;"><a title="good wordpress footer designs" rel="nofollow" href="http://www.labnol.org/" target="_blank"><img class="aligncenter" title="labnol_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/labnol_wordpress_footer_design.jpg" alt="" width="500" height="150" /></a></p>
<p style="text-align: center;"><a title="awesome wordpress footer design" rel="nofollow" href="http://www.chris-wallace.com/" target="_blank"><img class="aligncenter" title="chris_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/chris_wordpress_footer_design.jpg" alt="" width="500" height="169" /></a></p>
<p style="text-align: center;"><a title="cool wordpress footer design" rel="nofollow" href="http://kailoon.com/" target="_blank"><img class="aligncenter" title="kaillon_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/kaillon_wordpress_footer_design.jpg" alt="" width="500" height="156" /></a></p>
<p style="text-align: center;"><a title="good wordpress footer designs" rel="nofollow" href="http://www.seraph-design.de/" target="_blank"><img class="aligncenter" title="seraph_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/seraph_wordpress_footer_design.jpg" alt="" width="500" height="200" /></a></p>
<p style="text-align: center;"><a title="cool wordpress footer design" rel="nofollow" href="http://www.gomediazine.com/" target="_blank"><img class="aligncenter" title="gomediazine_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/gomediazine_wordpress_footer_design.jpg" alt="" width="500" height="227" /></a></p>
<p style="text-align: center;"><a title="awesome wordpress footer design" rel="nofollow" href="http://dreamling.ca/" target="_blank"><img class="aligncenter" title="dreamling_wordpress_footer_design" src="http://pic.liqinghai.com/2009/09/dreamling_wordpress_footer_design.jpg" alt="" width="500" height="150" /></a></p>
<p style="text-align: center;"><a title="awesome wordpress footer design" rel="nofollow" href="http://www.bcandullo.com/" target="_blank"><img class="aligncenter" title="bcandullo_wordpress_footer_design1" src="http://pic.liqinghai.com/2009/09/bcandullo_wordpress_footer_design1.jpg" alt="" width="500" height="141" /></a></p>
<p>翻译自：<a href="http://www.reencoded.com/2009/07/07/20-great-wordpress-footer-designs-for-inspiration/">20 great WordPress Footer Designs for Inspiration</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.liqinghai.com/20-great-wordpress-footer-designs-for-inspiration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10+WordPress主题设计常用代码</title>
		<link>http://www.liqinghai.com/top-10-wordpress-codes-every-designer-should-know/</link>
		<comments>http://www.liqinghai.com/top-10-wordpress-codes-every-designer-should-know/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 16:03:54 +0000</pubDate>
		<dc:creator>grubylee</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://www.liqinghai.com/?p=150</guid>
		<description><![CDATA[介绍10个WordPress主题设计常用的代码，希望对新手进行主题设计时有所帮助(PS.我正学习WordPress主题设计，希望童鞋们指点指点)。 显示最近文章 1 &#60;?php wp_get_archives&#40;'type=postbypost&#38;limit=5'&#41;; ?&#62; or 1 2 3 &#60;?php $recentposts = get_posts&#40;'numberposts=12&#38;category=4'&#41;; foreach &#40;$recentposts as $post&#41; : setup_postdata&#40;$post&#41;; ?&#62; &#60;li&#62;&#60;a href=&#34;&#60;?php the_permalink&#40;&#41; ?&#62;&#34;&#62;&#60;?php the_title&#40;&#41;; ?&#62;&#60;/a&#62;&#60;/li&#62; &#60;?php endforeach; ?&#62; 显示分类 1 2 3 4 &#60;h2&#62;Categories&#60;/h2&#62; &#60;ul&#62; &#60;?php wp_list_cats&#40;'sort_column=name'&#41;; ?&#62; &#60;/ul&#62; 显示存档 1 2 3 4 &#60;h2&#62;Archives&#60;/h2&#62; &#60;ul&#62; &#60;?php wp_get_archives&#40;'type=monthly'&#41;; ?&#62; &#60;/ul&#62; 显示标签云 1 &#60;?php [...]]]></description>
			<content:encoded><![CDATA[<p>介绍10个<a href="http://www.liqinghai.com/tag/wordpress/">WordPress</a>主题设计常用的代码，希望对新手进行主题设计时有所帮助(PS.我正学习<a href="http://www.liqinghai.com/tag/wordpress/">WordPress</a>主题设计，希望童鞋们指点指点)。</p>
<p><a href="http://pic.liqinghai.com//2009/09/most-commonly-used-wordpress-code-snippets.jpg"><img class="aligncenter size-full wp-image-151" title="most-commonly-used-wordpress-code-snippets" src="http://pic.liqinghai.com//2009/09/most-commonly-used-wordpress-code-snippets.jpg" alt="most-commonly-used-wordpress-code-snippets" width="490" height="182" /></a><br />
<span id="more-150"></span></p>
<h4>显示最近文章</h4>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_get_archives<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'type=postbypost&amp;limit=5'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>or</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>  <span style="color: #000088;">$recentposts</span> <span style="color: #339933;">=</span> get_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'numberposts=12&amp;category=4'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$recentposts</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$post</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>      setup_postdata<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&lt;li&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/li&gt;  <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endforeach</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<h4>显示分类</h4>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;h2&gt;Categories&lt;/h2&gt; 
&lt;ul&gt; 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_cats<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sort_column=name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&lt;/ul&gt;</pre></td></tr></table></div>

<h4>显示存档</h4>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;h2&gt;Archives&lt;/h2&gt; 
&lt;ul&gt; 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_get_archives<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'type=monthly'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&lt;/ul&gt;</pre></td></tr></table></div>

<h4>显示标签云</h4>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_tag_cloud<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'smallest=8&amp;largest=36&amp;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<h4>显示友情链接</h4>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;  <span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_bookmarks<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_li=&amp;categorize=0'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>  &lt;/ul&gt;</pre></td></tr></table></div>

<h4>显示标签</h4>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_tags<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<h4>显示页面导航菜单</h4>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;h2&gt;Pages&lt;/h2&gt; 
&lt;ul&gt; 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_li='</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&lt;/ul&gt;</pre></td></tr></table></div>

<h4>显示最新评论</h4>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT DISTINCT ID, post_title, post_password, comment_ID, 
comment_post_ID, comment_author, comment_date_gmt, comment_approved, 
comment_type,comment_author_url, 
SUBSTRING(comment_content,1,30) AS com_excerpt 
FROM <span style="color: #006699; font-weight: bold;">$wpdb-&gt;comments</span> 
LEFT OUTER JOIN <span style="color: #006699; font-weight: bold;">$wpdb-&gt;posts</span> ON (<span style="color: #006699; font-weight: bold;">$wpdb-&gt;comments</span>.comment_post_ID = 
<span style="color: #006699; font-weight: bold;">$wpdb-&gt;posts</span>.ID) 
WHERE comment_approved = '1' AND comment_type = '' AND 
post_password = '' 
ORDER BY comment_date_gmt DESC 
LIMIT 10&quot;</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$comments</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_results</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$pre_HTML</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&lt;ul&gt;&quot;</span><span style="color: #339933;">;</span> 
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$comments</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$comment</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&lt;li&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author</span><span style="color: #009900;">&#41;</span> 
<span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;:&quot;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;a href=<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span> <span style="color: #339933;">.</span> get_permalink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> 
<span style="color: #0000ff;">&quot;#comment-&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_ID</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span> title=<span style="color: #000099; font-weight: bold;">\&quot;</span>on &quot;</span> <span style="color: #339933;">.</span> 
<span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">com_excerpt</span><span style="color: #009900;">&#41;</span> 
<span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/a&gt;&lt;/li&gt;&quot;</span><span style="color: #339933;">;</span> 
<span style="color: #009900;">&#125;</span> 
<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&lt;/ul&gt;&quot;</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$post_HTML</span><span style="color: #339933;">;</span> 
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$output</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<h4>显示管理面板</h4>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt; 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_register<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&lt;li&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_loginout<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/li&gt; 
&lt;li&gt;&lt;a href=&quot;http://www.wordpress.org/&quot;&gt;WordPress&lt;/a&gt;&lt;/li&gt; 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_meta<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&lt;li&gt;&lt;a href=&quot;http://validator.w3.org/check?uri=referer&quot;&gt;XHTML&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt;</pre></td></tr></table></div>

<h4>显示热门评论</h4>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_results</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT 
comment_count,ID,post_title FROM <span style="color: #006699; font-weight: bold;">$wpdb-&gt;posts</span> ORDER BY comment_count 
DESC LIMIT 0 , 10&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$topten</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
<span style="color: #000088;">$postid</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$topten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$topten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$commentcount</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$topten</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_count</span><span style="color: #339933;">;</span> 
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$commentcount</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&lt;li&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_permalink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$postid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; 
title=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$title</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$title</span> 
<span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/li&gt; 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>翻译自：<a href="http://www.cssreflex.com/2009/08/top-10-wordpress-codes-every-designer-should-know.html">Top 10 WordPress Codes Every Designer Should Know</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.liqinghai.com/top-10-wordpress-codes-every-designer-should-know/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>为WordPress增加自定义登录页面</title>
		<link>http://www.liqinghai.com/how-to-add-a-custom-box-at-the-login-page/</link>
		<comments>http://www.liqinghai.com/how-to-add-a-custom-box-at-the-login-page/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 11:56:20 +0000</pubDate>
		<dc:creator>grubylee</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.liqinghai.com/?p=33</guid>
		<description><![CDATA[最近忙于应付考试，博客都没有更新了，发现了Alex的一篇文章，分享给大家…… If you wanna English tutorial, please visit How to add a custom box at the login page 如果用户不小心进入了你的后台登录页面，一个不错的登录页面可能使用户返回到你的首页。怎样才能让用户觉得这不仅仅是一个错误的页面呢？怎样才能达到如图的效果呢？ The Examples [Live Demo] 修改方法: 你可以通过修改wp-login.php更换登录框下边的信息，然后修改css文件控制它的样式。 打开wp-login.php. 删除495行 (WP 2.8+ 请删除 530行),同时增加如下代码: Looking for posts? Go back to &#60;a href=&#34;http://yourdomainname.com/&#34;&#62;my homepage.&#60;/a&#62; 请自行修改p标签里之间的内容。 保存并关闭 wp-login.php 上传并替换WordPress 根目录的wp-login.php. 完成了，刷新看看吧! 以下是例子中自定义提示信息颜色的方法： 重新打开wp-login.php 找到495行 (WP 2.8+ 请找到530行)并增加 Looking for posts? [...]]]></description>
			<content:encoded><![CDATA[<p>最近忙于应付考试，博客都没有更新了，发现了<a href="http://finkaboutit.com/">Alex</a>的一篇文章，分享给大家……</p>
<p>If you wanna English tutorial, please visit <a href="http://finkaboutit.com/2009/how-to-add-a-custom-box-at-the-login-page/">How to add a custom box at the login page</a></p>
<p>如果用户不小心进入了你的后台登录页面，一个不错的登录页面可能使用户返回到你的首页。怎样才能让用户觉得这不仅仅是一个错误的页面呢？怎样才能达到如图的效果呢？</p>
<p><span id="more-33"></span></p>
<h3>The Examples</h3>
<p><a href="http://pic.liqinghai.com//2009/07/custom_login_example1.gif"><img class="alignnone size-medium wp-image-38" title="custom_login_example1" src="http://pic.liqinghai.com//2009/07/custom_login_example1-264x300.gif" alt="custom_login_example1" width="264" height="300" /></a><a href="http://pic.liqinghai.com//2009/07/custom_login_example2.gif"><img class="alignnone size-medium wp-image-37" title="custom_login_example2" src="http://pic.liqinghai.com//2009/07/custom_login_example2-257x300.gif" alt="custom_login_example2" width="257" height="300" /></a><br />
[<a href="http://finkaboutit.com/wp-login.php" target="_blank">Live Demo</a>]</p>
<h3>修改方法:</h3>
<p>你可以通过修改<code>wp-login.php</code>更换登录框下边的信息，然后修改css文件控制它的样式。</p>
<ol>
<li>打开<code>wp-login.php</code>.</li>
<li>删除495行 (WP 2.8+ 请删除 530行),同时增加如下代码:

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"> Looking for posts? Go back to &lt;a href=&quot;http://yourdomainname.com/&quot;&gt;my homepage.&lt;/a&gt;</pre></div></div>

<p>请自行修改p标签里之间的内容。</li>
<li>保存并关闭 <code>wp-login.php</code></li>
<li>上传并替换WordPress 根目录的<code>wp-login.php</code>.</li>
<li>完成了，刷新看看吧!</li>
</ol>
<p><strong>以下是例子中自定义提示信息颜色的方法：</strong></p>
<ol>
<li>重新打开<code>wp-login.php</code></li>
<li>找到495行 (WP 2.8+ 请找到530行)并增加

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">Looking for posts? Go back to &lt;a href=&quot;http://yourdomainname.com/&quot;&gt;my homepage.&lt;/a&gt;</pre></div></div>

</li>
<li>保存并上传到WordPress根目录.</li>
<li>打开 wp-admin/css中的<code>login.css</code>.</li>
<li>找到94行，在后面增加如下代码:

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.message2</span>
<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">16px</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> &lt;strong<span style="color: #00AA00;">&gt;</span><span style="color: #cc00cc;">#F98C8C</span>&lt;/strong<span style="color: #00AA00;">&gt;;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> &lt;strong<span style="color: #00AA00;">&gt;</span><span style="color: #cc00cc;">#FFF0F0</span>&lt;/strong<span style="color: #00AA00;">&gt;;</span>
-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
-khtml-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p align="left">大胆的改变上面的代码，你可以自定义登录信息方框的颜色.例子的代码可以使你的登录信息框变成红色。</p>
</li>
<li>保存并上传login.css到wp-admin/css目录.</li>
<li>完成!</li>
</ol>
<p>同时你可以修改wp-admin/images目录的logo-login.gif图片定义个性化的login-logo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liqinghai.com/how-to-add-a-custom-box-at-the-login-page/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
