<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - championeer</title>
<link>http://snipplr.com/users/championeer</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Mon, 20 May 2013 22:08:51 GMT</pubDate>
<item>
<title>(PHP) Broadleaf主题模版的时区问题修正（存在于其1.4rc1，2，3版中）</title>
<link>http://snipplr.com/view/319/broadleaf14rc123/</link>
<description><![CDATA[ <p>这个问题出现在home.php中。
from:天佑
在 home.php 中 $myrecentposts 內的 SQL 是用 post_date 和 NOW() 作比較．
NOW() 這個 function 是會以 server 的 timezone 讀取現時的時間，但 post_date 這個 field 的 timezone 則是你在 WordPress Admin. panel 設定的，兩者是極有機會不同．
11:25 AM 所以如果 server timezone 是比你 WordPress 設定的 timezone 早的話，你遇到的問題便會發生．
11:27 AM 要修改其實很簡單，在 home.php 中，將 $myrecentposts 內的

WHERE post_date < NOW()

改為

WHERE post_date_gmt < UTC_TIMESTAMP()

便可</p> ]]></description>
<pubDate>Sun, 09 Jul 2006 21:38:00 GMT</pubDate>
<guid>http://snipplr.com/view/319/broadleaf14rc123/</guid>
</item>
<item>
<title>(PHP) 在wordpress主循环中过滤掉指定类别中的帖子</title>
<link>http://snipplr.com/view/295/wordpress/</link>
<description><![CDATA[ <p>Exclude Posts From Some Category
这样就可以在首页中不显示某些类别（比如asides）的帖子了</p> ]]></description>
<pubDate>Sun, 09 Jul 2006 03:46:14 GMT</pubDate>
<guid>http://snipplr.com/view/295/wordpress/</guid>
</item>
</channel>
</rss>