<?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>ChiaoCheng.com &#187; WordPress</title>
	<atom:link href="http://www.chiaocheng.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chiaocheng.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 04 Jun 2010 23:20:46 +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>Wordpress: No Page comments</title>
		<link>http://www.chiaocheng.com/2009/07/wordpress-no-page-comments/</link>
		<comments>http://www.chiaocheng.com/2009/07/wordpress-no-page-comments/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 00:45:42 +0000</pubDate>
		<dc:creator>chiao</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.chiaocheng.com/?p=213</guid>
		<description><![CDATA[It seems like the &#8220;Allow Comments&#8221; option on the &#8220;Add new page&#8221; screen does not work in wordpress.  Specifically, it does not work for the default theme Kubrick.
Seeing this option, it&#8217;s easy to assume this enables comments on your wordpress Pages, especially for the default theme.  But unfortunately, this particular option in the admin [...]]]></description>
			<content:encoded><![CDATA[<p>It seems like the &#8220;Allow Comments&#8221; option on the &#8220;Add new page&#8221; screen does not work in wordpress.  Specifically, it does not work for the default theme Kubrick.</p>
<div id="attachment_215" class="wp-caption alignnone" style="width: 540px"><img class="size-full wp-image-215" title="wordpress-allow-discussion" src="http://www.chiaocheng.com/wp-content/uploads/2009/07/wordpress-allow-discussion.png" alt="Allow comments option" width="530" height="113" /><p class="wp-caption-text">Allow comments option</p></div>
<p>Seeing this option, it&#8217;s easy to assume this enables comments on your wordpress Pages, especially for the default theme.  But unfortunately, this particular option in the admin page has no affect on the default Kubrick theme.  To enable comments on your Page(s), you have to select a theme which includes them or modify your default Kubrick theme.</p>
<h2 id="toc-default-theme-with-page-comments">Default theme with page comments</h2>
<p>To change your default theme, add the following line to <code>/wp-content/themes/default/page.php</code></p>
<p><!--no-encode--></p>
<pre class="brush:php; highlight: [24]">&lt;?php
/**
 * @package WordPress
 * @subpackage Default_Theme
 */

get_header(); ?&gt;

    &lt;div id="content" class="narrowcolumn"&gt;

        &lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;
        &lt;div class="post" id="post-&lt;?php the_ID(); ?&gt;"&gt;
        &lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;
            &lt;div class="entry"&gt;
                &lt;?php the_content('&lt;p class="serif"&gt;Read the rest of this page &amp;raquo;&lt;/p&gt;'); ?&gt;

                &lt;?php wp_link_pages(array('before' =&gt; '&lt;p&gt;&lt;strong&gt;Pages:&lt;/strong&gt; ', 'after' =&gt; '&lt;/p&gt;', 'next_or_number' =&gt; 'number')); ?&gt;

            &lt;/div&gt;
        &lt;/div&gt;
        &lt;?php endwhile; endif; ?&gt;
    &lt;?php edit_post_link('Edit this entry.', '&lt;p&gt;', '&lt;/p&gt;'); ?&gt;

    &lt;?php comments_template(); ?&gt;
    &lt;/div&gt;

&lt;?php get_footer(); ?&gt;</pre>
<h2 id="toc-additional-references">Additional References</h2>
<p><a href="http://wordpress.org/support/topic/246879" target="_blank">http://wordpress.org/support/topic/246879</a></p>
<p><a href="http://wordpress.org/support/topic/196788" target="_blank">http://wordpress.org/support/topic/196788</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiaocheng.com/2009/07/wordpress-no-page-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress thumbnail generation disabled</title>
		<link>http://www.chiaocheng.com/2009/06/wordpress-thumbnail-generation-disabled/</link>
		<comments>http://www.chiaocheng.com/2009/06/wordpress-thumbnail-generation-disabled/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 23:22:29 +0000</pubDate>
		<dc:creator>chiao</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.chiaocheng.com/?p=60</guid>
		<description><![CDATA[No thumbnails in your wordpress?  Read on&#8230;
I noticed last night that my wordpress is not generating thumbnails from uploaded images like it&#8217;s suppose to. You&#8217;ll noticed that the size options (thumbnail, medium, large) are all disabled except for the full size.

After doing a lot of searching, I finally found out that in order for [...]]]></description>
			<content:encoded><![CDATA[<p>No thumbnails in your wordpress?  Read on&#8230;</p>
<p>I noticed last night that my wordpress is not generating thumbnails from uploaded images like it&#8217;s suppose to. You&#8217;ll noticed that the size options (thumbnail, medium, large) are all disabled except for the full size.</p>
<p style="text-align: center;"><img class="size-full wp-image-62  aligncenter" title="wordpress-size-options" src="http://www.chiaocheng.com/wp-content/uploads/2009/06/wordpress-size-options.png" alt="wordpress-size-options" width="637" height="114" /></p>
<p>After doing a lot of searching, I finally found out that in order for wordpress to generate thumbnails &#8220;by default&#8221;, you need to have GD library support for your php. It would have been nice if wordpress had documented that better.</p>
<p>The only reference I found was this:</p>
<p><a href="http://wordpress.org/support/topic/235625" target="_blank">http://wordpress.org/support/topic/235625</a></p>
<p>To be clear, <strong>wordpress does not generate thumbnails by default unless your php instance has GD support</strong>.</p>
<h3 id="toc-install-php-gd-library">Install php gd library</h3>
<p>For me, installing GD library was easy:
<pre class="brush:shell; gutter:false">
# yum install php-gd
</pre>
<h3 id="toc-check-for-gd">Check for gd</h3>
<p>To check if you have GD loaded in php:
<pre class="brush:shell; gutter:false; highlight:[11]"># php -m
[PHP Modules]
bz2
calendar
ctype
curl
date
dbase
exif
ftp
gd
gettext
gmp
hash
iconv</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.chiaocheng.com/2009/06/wordpress-thumbnail-generation-disabled/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
