<?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>你好分类信息博客</title>
	<atom:link href="http://blog.nihao.ac.cn/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nihao.ac.cn</link>
	<description>你好分类信息网&#124;招聘求职&#124;信息发布&#124;房租出租&#124;房屋合租&#124;车辆买卖&#124;出售转让</description>
	<lastBuildDate>Mon, 21 Sep 2009 13:01:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>如何发布信息永久有效</title>
		<link>http://blog.nihao.ac.cn/2009/09/%e5%a6%82%e4%bd%95%e5%8f%91%e5%b8%83%e4%bf%a1%e6%81%af%e6%b0%b8%e4%b9%85%e6%9c%89%e6%95%88/</link>
		<comments>http://blog.nihao.ac.cn/2009/09/%e5%a6%82%e4%bd%95%e5%8f%91%e5%b8%83%e4%bf%a1%e6%81%af%e6%b0%b8%e4%b9%85%e6%9c%89%e6%95%88/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 13:01:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[最新公告]]></category>

		<guid isPermaLink="false">http://blog.nihao.ac.cn/?p=14</guid>
		<description><![CDATA[如何发布信息永久有效]]></description>
			<content:encoded><![CDATA[<h1 id="subject_tpc">如何发布信息永久有效</h1>
<div id="att_1" style="margin: 5px 0pt;">图片:<br />
<img onclick="if(this.width&gt;=700) window.open('http://bbs.nihao.ac.cn/attachment/Mon_0909/4_2_99490d58651c195.jpg');" src="http://bbs.nihao.ac.cn/attachment/Mon_0909/4_2_99490d58651c195.jpg" border="0" alt="" /> [<a style="cursor: pointer;" onclick="delatt('tpc','1');">删除</a>]</div>
<p>发布信息时请选择0天，这样您发布的信息就会永久有效，违法信息除外，违法信息我们会及时删除，谢谢！<a id="url_1" onclick="return checkUrl(this)" href="http://www.nihao.ac.cn/" target="_blank">http://www.nihao.ac.cn</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nihao.ac.cn/2009/09/%e5%a6%82%e4%bd%95%e5%8f%91%e5%b8%83%e4%bf%a1%e6%81%af%e6%b0%b8%e4%b9%85%e6%9c%89%e6%95%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>刷新DNS命令 如何刷新DNS缓存</title>
		<link>http://blog.nihao.ac.cn/2009/08/%e5%88%b7%e6%96%b0dns%e5%91%bd%e4%bb%a4-%e5%a6%82%e4%bd%95%e5%88%b7%e6%96%b0dns%e7%bc%93%e5%ad%98/</link>
		<comments>http://blog.nihao.ac.cn/2009/08/%e5%88%b7%e6%96%b0dns%e5%91%bd%e4%bb%a4-%e5%a6%82%e4%bd%95%e5%88%b7%e6%96%b0dns%e7%bc%93%e5%ad%98/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 01:09:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[综合内容]]></category>

		<guid isPermaLink="false">http://blog.nihao.ac.cn/?p=12</guid>
		<description><![CDATA[运行:ipconfig /displaydns这个命令,查看一下本机已经缓存了那些的dns信息的,然后输入下面的命令
ipconfig /flushdns
这时本机的dns缓存信息已经清空了,我们可以再次输入第一次输入的命令来看一下,
ipconfig /displaydns
ipconfig /displaydns显示dns缓存
ipconfig /flushdns 刷新DNS记录
ipconfig /renew重请从DHCP服务器获得IP
先可以输入ipconfig /displaydns显示dns缓存根据显示结果你可以很直观的看到现在你的DNS所指上的IP，然后运行ipconfig /flushdns 刷新DNS记录和ipconfig /renew重请从DHCP服务器获得IP就可以了，如果一次刷新没有用，可以多次用ipconfig /flushdns进行刷新
]]></description>
			<content:encoded><![CDATA[<p>运行:ipconfig /displaydns这个命令,查看一下本机已经缓存了那些的dns信息的,然后输入下面的命令</p>
<p>ipconfig /flushdns</p>
<p>这时本机的dns缓存信息已经清空了,我们可以再次输入第一次输入的命令来看一下,</p>
<p>ipconfig /displaydns</p>
<div>ipconfig /displaydns显示dns缓存</div>
<div>ipconfig /flushdns 刷新DNS记录</div>
<div>ipconfig /renew重请从DHCP服务器获得IP</div>
<div>先可以输入ipconfig /displaydns显示dns缓存根据显示结果你可以很直观的看到现在你的DNS所指上的IP，然后运行ipconfig /flushdns 刷新DNS记录和ipconfig /renew重请从DHCP服务器获得IP就可以了，如果一次刷新没有用，可以多次用ipconfig /flushdns进行刷新</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.nihao.ac.cn/2009/08/%e5%88%b7%e6%96%b0dns%e5%91%bd%e4%bb%a4-%e5%a6%82%e4%bd%95%e5%88%b7%e6%96%b0dns%e7%bc%93%e5%ad%98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress模板技术</title>
		<link>http://blog.nihao.ac.cn/2009/08/wordpress%e6%a8%a1%e6%9d%bf%e6%8a%80%e6%9c%af/</link>
		<comments>http://blog.nihao.ac.cn/2009/08/wordpress%e6%a8%a1%e6%9d%bf%e6%8a%80%e6%9c%af/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 05:06:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[综合内容]]></category>

		<guid isPermaLink="false">http://blog.nihao.ac.cn/?p=9</guid>
		<description><![CDATA[我们在博客平台的选择一 文中之所以推荐使用WordPress来搭建博客，主要原因便在于WordPress较高的流行度，各种围绕其进行的开发、功能扩充应有尽有，基本上可以 说我们在博客建设中所需的任何功能，都已有人想到并得到实现，让blogger不必在网站具体的技术实现及功能扩充方面投入过多的精力，而更专注于内容建 设。
以WordPress模板为例，网上几乎随处可见，花样种类繁多，即使Blogger完全没 有Html设计基础，也不妨碍建设一个漂亮的、成功的博客。不过，凡事有利便有弊，也有些朋友不愿使用这类免费的模板，不管怎么说，这类免费模板总会有其 他人在使用，有时难免会给用户似曾相识的感觉，而更希望自己定制一套专用的模板以体现更多的个人特色；也有些朋友对目前正在使用的模板不太满意，希望能对 其进行一定的调整或功能扩充，这就需要对WordPress模板的设计方法及常用函数有个基本了解。
本文以技术手册的方式简单汇总WordPress模板的基本资料，希望能对朋友们有所助益。
WordPress基本模板文件
一套完整的WordPress模板应至少具有如下文件：


style.css
: CSS(样式表)文件


index.php
: 主页模板


archive.php
: Archive/Category模板


404.php
: Not Found 错误页模板


comments.php
: 留言/回复模板


footer.php
: Footer模板


header.php
: Header模板


sidebar.php
: 侧栏模板


page.php
: 内容页(Page)模板


single.php
: 内容页(Post)模板


searchform.php
: 搜索表单模板


search.php
: 搜索结果模板


当然，具体到特定的某款模板，可能不止这些文件，但一般而言，这些文件是每套模板所必备的。
基本条件判断Tag


is_home()
: 是否为主页


is_single()
: 是否为内容页(Post)


is_page()
: 是否为内容页(Page)


is_category()
: 是否为Category/Archive页


is_tag()
: 是否为Tag存档页


is_date()
: 是否为指定日期存档页


is_year()
: 是否为指定年份存档页


is_month()
: 是否为指定月份存档页


is_day()
: 是否为指定日存档页


is_time()
: 是否为指定时间存档页


is_archive()
: 是否为存档页


is_search()
: 是否为搜索结果页


is_404()
: 是否为 “HTTP 404: Not Found” 错误页


is_paged()
: 主页/Category/Archive页是否以多页显示


Header部分常用到的PHP函数

&#60;?php bloginfo(’name’); ?&#62; : 博客名称(Title)
&#60;?php bloginfo(’stylesheet_url’); ?&#62; : CSS文件路径
&#60;?php bloginfo(’pingback_url’); ?&#62; : PingBack Url
&#60;?php bloginfo(’template_url’); ?&#62; [...]]]></description>
			<content:encoded><![CDATA[<p style="text-indent: 2em;">我们在<a href="http://www.yahoohost.cn" target="_self">博客平台</a>的选择一 文中之所以推荐使用WordPress来搭建博客，主要原因便在于WordPress较高的流行度，各种围绕其进行的开发、功能扩充应有尽有，基本上可以 说我们在博客建设中所需的任何功能，都已有人想到并得到实现，让blogger不必在网站具体的技术实现及功能扩充方面投入过多的精力，而更专注于内容建 设。</p>
<p style="text-indent: 2em;">以WordPress模板为例，网上几乎随处可见，花样种类繁多，即使Blogger完全没 有Html设计基础，也不妨碍建设一个漂亮的、成功的博客。不过，凡事有利便有弊，也有些朋友不愿使用这类免费的模板，不管怎么说，这类免费模板总会有其 他人在使用，有时难免会给用户似曾相识的感觉，而更希望自己定制一套专用的模板以体现更多的个人特色；也有些朋友对目前正在使用的模板不太满意，希望能对 其进行一定的调整或功能扩充，这就需要对WordPress模板的设计方法及常用函数有个基本了解。</p>
<p style="text-indent: 2em;">本文以技术手册的方式简单汇总WordPress模板的基本资料，希望能对朋友们有所助益。</p>
<p style="text-indent: 2em;">WordPress基本模板文件</p>
<p style="text-indent: 2em;">一套完整的WordPress模板应至少具有如下文件：</p>
<ul>
<li>
<p style="text-indent: 2em;">style.css</p>
<p style="text-indent: 2em;">: CSS(样式表)文件</p>
</li>
<li>
<p style="text-indent: 2em;">index.php</p>
<p style="text-indent: 2em;">: 主页模板</p>
</li>
<li>
<p style="text-indent: 2em;">archive.php</p>
<p style="text-indent: 2em;">: Archive/Category模板</p>
</li>
<li>
<p style="text-indent: 2em;">404.php</p>
<p style="text-indent: 2em;">: Not Found 错误页模板</p>
</li>
<li>
<p style="text-indent: 2em;">comments.php</p>
<p style="text-indent: 2em;">: 留言/回复模板</p>
</li>
<li>
<p style="text-indent: 2em;">footer.php</p>
<p style="text-indent: 2em;">: Footer模板</p>
</li>
<li>
<p style="text-indent: 2em;">header.php</p>
<p style="text-indent: 2em;">: Header模板</p>
</li>
<li>
<p style="text-indent: 2em;">sidebar.php</p>
<p style="text-indent: 2em;">: 侧栏模板</p>
</li>
<li>
<p style="text-indent: 2em;">page.php</p>
<p style="text-indent: 2em;">: 内容页(Page)模板</p>
</li>
<li>
<p style="text-indent: 2em;">single.php</p>
<p style="text-indent: 2em;">: 内容页(Post)模板</p>
</li>
<li>
<p style="text-indent: 2em;">searchform.php</p>
<p style="text-indent: 2em;">: 搜索表单模板</p>
</li>
<li>
<p style="text-indent: 2em;">search.php</p>
<p style="text-indent: 2em;">: 搜索结果模板</p>
</li>
</ul>
<p style="text-indent: 2em;">当然，具体到特定的某款模板，可能不止这些文件，但一般而言，这些文件是每套模板所必备的。</p>
<p style="text-indent: 2em;">基本条件判断Tag</p>
<ul>
<li>
<p style="text-indent: 2em;">is_home()</p>
<p style="text-indent: 2em;">: 是否为主页</p>
</li>
<li>
<p style="text-indent: 2em;">is_single()</p>
<p style="text-indent: 2em;">: 是否为内容页(Post)</p>
</li>
<li>
<p style="text-indent: 2em;">is_page()</p>
<p style="text-indent: 2em;">: 是否为内容页(Page)</p>
</li>
<li>
<p style="text-indent: 2em;">is_category()</p>
<p style="text-indent: 2em;">: 是否为Category/Archive页</p>
</li>
<li>
<p style="text-indent: 2em;">is_tag()</p>
<p style="text-indent: 2em;">: 是否为Tag存档页</p>
</li>
<li>
<p style="text-indent: 2em;">is_date()</p>
<p style="text-indent: 2em;">: 是否为指定日期存档页</p>
</li>
<li>
<p style="text-indent: 2em;">is_year()</p>
<p style="text-indent: 2em;">: 是否为指定年份存档页</p>
</li>
<li>
<p style="text-indent: 2em;">is_month()</p>
<p style="text-indent: 2em;">: 是否为指定月份存档页</p>
</li>
<li>
<p style="text-indent: 2em;">is_day()</p>
<p style="text-indent: 2em;">: 是否为指定日存档页</p>
</li>
<li>
<p style="text-indent: 2em;">is_time()</p>
<p style="text-indent: 2em;">: 是否为指定时间存档页</p>
</li>
<li>
<p style="text-indent: 2em;">is_archive()</p>
<p style="text-indent: 2em;">: 是否为存档页</p>
</li>
<li>
<p style="text-indent: 2em;">is_search()</p>
<p style="text-indent: 2em;">: 是否为搜索结果页</p>
</li>
<li>
<p style="text-indent: 2em;">is_404()</p>
<p style="text-indent: 2em;">: 是否为 “HTTP 404: Not Found” 错误页</p>
</li>
<li>
<p style="text-indent: 2em;">is_paged()</p>
<p style="text-indent: 2em;">: 主页/Category/Archive页是否以多页显示</p>
</li>
</ul>
<p style="text-indent: 2em;">Header部分常用到的PHP函数</p>
<ul>
<li>&lt;?php bloginfo(’name’); ?&gt; : 博客名称(Title)</li>
<li>&lt;?php bloginfo(’stylesheet_url’); ?&gt; : CSS文件路径</li>
<li>&lt;?php bloginfo(’pingback_url’); ?&gt; : PingBack Url</li>
<li>&lt;?php bloginfo(’template_url’); ?&gt; : 模板文件路径</li>
<li>&lt;?php bloginfo(’version’); ?&gt; : WordPress版本</li>
<li>&lt;?php bloginfo(’atom_url’); ?&gt; : Atom Url</li>
<li>&lt;?php bloginfo(’rss2_url’); ?&gt; : RSS 2.o Url</li>
<li>&lt;?php bloginfo(’url’); ?&gt; : 博客 Url</li>
<li>&lt;?php bloginfo(’html_type’); ?&gt; : 博客网页Html类型</li>
<li>&lt;?php bloginfo(’charset’); ?&gt; : 博客网页编码</li>
<li>&lt;?php bloginfo(’description’); ?&gt; : 博客描述</li>
<li>&lt;?php wp_title(); ?&gt; : 特定内容页(Post/Page)的标题</li>
</ul>
<p style="text-indent: 2em;">模板常用的PHP函数及命令</p>
<ul>
<li>&lt;?php get_header(); ?&gt; : 调用Header模板</li>
<li>&lt;?php get_sidebar(); ?&gt; : 调用Sidebar模板</li>
<li>&lt;?php get_footer(); ?&gt; : 调用Footer模板</li>
<li>&lt;?php the_content(); ?&gt; : 显示内容(Post/Page)</li>
<li>&lt;?php if(have_posts()) : ?&gt; : 检查是否存在Post/Page</li>
<li>&lt;?php while(have_posts()) : the_post(); ?&gt; : 如果存在Post/Page则予以显示</li>
<li>&lt;?php endwhile; ?&gt; : While 结束</li>
<li>&lt;?php endif; ?&gt; : If 结束</li>
<li>&lt;?php the_time(’字符串’) ?&gt; : 显示时间，时间格式由“字符串”参数决定，具体参考<a href="http://php.net/date">PHP手册</a></li>
<li>&lt;?php comments_popup_link(); ?&gt; : 正文中的留言链接。如果使用 comments_popup_script() ，则留言会在新窗口中打开，反之，则在当前窗口打开</li>
<li>&lt;?php the_title(); ?&gt; : 内容页(Post/Page)标题</li>
<li>&lt;?php the_permalink() ?&gt; : 内容页(Post/Page) Url</li>
<li>&lt;?php the_category(’, ‘) ?&gt; : 特定内容页(Post/Page)所属Category</li>
<li>&lt;?php the_author(); ?&gt; : 作者</li>
<li>&lt;?php the_ID(); ?&gt; : 特定内容页(Post/Page) ID</li>
<li>&lt;?php edit_post_link(); ?&gt; : 如果用户已登录并具有权限，显示编辑链接</li>
<li>&lt;?php get_links_list(); ?&gt; : 显示Blogroll中的链接</li>
<li>&lt;?php comments_template(); ?&gt; : 调用留言/回复模板</li>
<li>&lt;?php wp_list_pages(); ?&gt; : 显示Page列表</li>
<li>&lt;?php wp_list_categories(); ?&gt; : 显示Categories列表</li>
<li>&lt;?php next_post_link(’ %link ‘); ?&gt; : 下一篇文章链接</li>
<li>&lt;?php previous_post_link(’%link’); ?&gt; : 上一篇文章链接</li>
<li>&lt;?php get_calendar(); ?&gt; : 日历</li>
<li>&lt;?php wp_get_archives() ?&gt; : 显示内容存档</li>
<li>&lt;?php posts_nav_link(); ?&gt; : 导航，显示上一篇/下一篇文章链接</li>
<li>&lt;?php include(TEMPLATEPATH . ‘/文件名’); ?&gt; : 嵌入其他文件，可为定制的模板或其他类型文件</li>
</ul>
<p style="text-indent: 2em;">与模板相关的其他函数</p>
<ul>
<li>&lt;?php _e(’Message’); ?&gt; : 输出相应信息</li>
<li>&lt;?php wp_register(); ?&gt; : 显示注册链接</li>
<li>&lt;?php wp_loginout(); ?&gt; : 显示登录/注销链接</li>
<li>&lt;!–next page–&gt; : 将当前内容分页</li>
<li>&lt;!–more–&gt; : 将当前内容截断，以不在主页/目录页显示全部内容</li>
<li>&lt;?php timer_stop(1); ?&gt; : 网页加载时间(秒)</li>
<li>&lt;?php echo get_num_queries(); ?&gt; : 网页加载查询量</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.nihao.ac.cn/2009/08/wordpress%e6%a8%a1%e6%9d%bf%e6%8a%80%e6%9c%af/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>你好分类信息网终于高级伪静态了</title>
		<link>http://blog.nihao.ac.cn/2009/08/%e4%bd%a0%e5%a5%bd%e5%88%86%e7%b1%bb%e4%bf%a1%e6%81%af%e7%bd%91%e7%bb%88%e4%ba%8e%e9%ab%98%e7%ba%a7%e4%bc%aa%e9%9d%99%e6%80%81%e4%ba%86/</link>
		<comments>http://blog.nihao.ac.cn/2009/08/%e4%bd%a0%e5%a5%bd%e5%88%86%e7%b1%bb%e4%bf%a1%e6%81%af%e7%bd%91%e7%bb%88%e4%ba%8e%e9%ab%98%e7%ba%a7%e4%bc%aa%e9%9d%99%e6%80%81%e4%ba%86/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 17:34:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[最新公告]]></category>

		<guid isPermaLink="false">http://blog.nihao.ac.cn/?p=7</guid>
		<description><![CDATA[你好分类信息网终于高级伪静态了]]></description>
			<content:encoded><![CDATA[<p>我要大声的宣布，</p>
<p>你好分类信息网</p>
<p><a href="http://www.nihao.ac.cn/" target="_blank">http://www.nihao.ac.cn</a></p>
<p>终于高级伪静态了,在此我们非常感谢</p>
<p>PHP168网友“<strong><a href="u-bbs-action-show-uid-55988.html" target="_blank">haohz</a></strong>”的无私奉献htaccess规则，非常感谢！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nihao.ac.cn/2009/08/%e4%bd%a0%e5%a5%bd%e5%88%86%e7%b1%bb%e4%bf%a1%e6%81%af%e7%bd%91%e7%bb%88%e4%ba%8e%e9%ab%98%e7%ba%a7%e4%bc%aa%e9%9d%99%e6%80%81%e4%ba%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>你好分类信息网试运行</title>
		<link>http://blog.nihao.ac.cn/2009/08/%e4%bd%a0%e5%a5%bd%e5%88%86%e7%b1%bb%e4%bf%a1%e6%81%af%e7%bd%91%e8%af%95%e8%bf%90%e8%a1%8c/</link>
		<comments>http://blog.nihao.ac.cn/2009/08/%e4%bd%a0%e5%a5%bd%e5%88%86%e7%b1%bb%e4%bf%a1%e6%81%af%e7%bd%91%e8%af%95%e8%bf%90%e8%a1%8c/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 12:39:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[最新公告]]></category>

		<guid isPermaLink="false">http://blog.nihao.ac.cn/?p=3</guid>
		<description><![CDATA[你好分类信息网试运行，包含300项分类信息]]></description>
			<content:encoded><![CDATA[<p>你好分类信息网试运行，包含300项分类信息：下设房屋出租/房屋出售/招聘求职/二手物品交易/汽车买卖等，欢迎广大用户踊跃投稿！</p>
<p>http://www.nihao.ac.cn</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nihao.ac.cn/2009/08/%e4%bd%a0%e5%a5%bd%e5%88%86%e7%b1%bb%e4%bf%a1%e6%81%af%e7%bd%91%e8%af%95%e8%bf%90%e8%a1%8c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

