<?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>양군팩토리 &#187; 워드프레스</title>
	<atom:link href="http://www.yangkun.pe.kr/category/telling/wordpress-telling/feed" rel="self" type="application/rss+xml" />
	<link>http://www.yangkun.pe.kr</link>
	<description>web developer</description>
	<lastBuildDate>Wed, 20 Jan 2010 01:04:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>워드프레스 2.9 Post Thumbnail 사용하기</title>
		<link>http://www.yangkun.pe.kr/post/717</link>
		<comments>http://www.yangkun.pe.kr/post/717#comments</comments>
		<pubDate>Thu, 07 Jan 2010 09:18:10 +0000</pubDate>
		<dc:creator>양군</dc:creator>
				<category><![CDATA[워드프레스]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[post thumbnail]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wptouch]]></category>

		<guid isPermaLink="false">http://www.yangkun.pe.kr/?p=717</guid>
		<description><![CDATA[Post Thumbnail 워드프레스가 2.9로 업데이트 되면서 크게 다음과 같은 특징들이 추가되었습니다. Post Thumbnail 포스트에 썸네일 이미지를 추가할 수 있습니다. 추가된 썸네일은 테마나 플러그인에서 활용할 수 있습니다. Trash Status 포스트, 페이지, 댓글 등을 바로 삭제하는게 아닌 &#8220;휴지통&#8221;으로 보낼 수 있으며 이를 관리할 수 있습니다. Basic Image Editing 워드프레스 관리 모드에서 첨부된 이미지에 대한 간단한 편집(크기 조정, [...]]]></description>
			<content:encoded><![CDATA[<h3>Post Thumbnail</h3>
<p>워드프레스가 2.9로 업데이트 되면서 크게 다음과 같은 특징들이 추가되었습니다.</p>
<ol>
<li><strong>Post Thumbnail</strong><br />
포스트에 썸네일 이미지를 추가할 수 있습니다.<br />
추가된 썸네일은 테마나 플러그인에서 활용할 수 있습니다.</li>
<li>Trash Status<br />
포스트, 페이지, 댓글 등을 바로 삭제하는게 아닌 &#8220;휴지통&#8221;으로 보낼 수 있으며 이를 관리할 수 있습니다.</li>
<li>Basic Image Editing<br />
워드프레스 관리 모드에서 첨부된 이미지에 대한 간단한 편집(크기 조정, 회전, 자르기 등)이 가능합니다.</li>
<li>Media Embedd<br />
포스트, 페이지에 미디어(그림, 동영상,파일 &#8230;)를 추가하기가 쉬워졌습니다.</li>
</ol>
<p>저역시 2.9로 업데이트했는데 Post Thumbnail 기능은 어디에서도 찾을 수 없어서 한참 헤멨습니다.</p>
<p><strong>이 글은 워드프레스를 2.9로 업데이트 했지만 Post Thumbnail 기능이 활성화 되지 않은 분들을 위한 겁니다.</strong></p>
<h3>테마 조정하기</h3>
<p>저의 경우에는 테마가 해당 기능을 지원하지 않았던 문제였습니다.</p>
<p>사용하는 테마 파일 중<strong> functions.php 라는 파일의 상단에 <a href="http://codex.wordpress.org/Post_Thumbnails">add_theme_support( &#8216;post-thumbnails&#8217; )</a> 를 삽입하면 기능이 활성화됩니다.</strong></p>
<pre class="brush: php">
if (function_exists(&#039;add_theme_support&#039;)) add_theme_support( &#039;post-thumbnails&#039; );
if (function_exists(&#039;set_post_thumbnail_size&#039;)) set_post_thumbnail_size(200, 200, false);
</pre>
<p>line.2 에 set_post_thumbnail_size 함수는 표시되는 썸네일 사이즈를 설정하는 함수입니다.</p>
<div id="attachment_720" class="wp-caption aligncenter" style="width: 357px"><img class="size-full wp-image-720" title="Post Thumbnail" src="http://www.yangkun.pe.kr/wp-content/uploads/2010/01/picpick-20100107181534.jpg" alt="Post Thumbnail" width="347" height="223" /><p class="wp-caption-text">이렇게 적용되었습니다.</p></div>
<h3>화면 옵션 조정하기</h3>
<p>그래도 글쓰기 화면에서 보이지 않는다면, <strong>화면 옵션을 살펴보십시오.</strong><br />
(화면 옵션은 글쓰기 화면 우측 상단에 있습니다.)</p>
<div id="attachment_721" class="wp-caption aligncenter" style="width: 698px"><img class="size-full wp-image-721" title="글쓰기 화면 옵션" src="http://www.yangkun.pe.kr/wp-content/uploads/2010/01/picpick-20100107182117.jpg" alt="글쓰기 화면 옵션" width="688" height="222" /><p class="wp-caption-text">글쓰기 화면 옵션</p></div>
<h3>썸네일 표시하기</h3>
<p>포스트에 설정된 썸네일을 표시하기 위해서는 테마 파일에 아래처럼 추가하면 됩니다.<br />
(<a href="http://www.yangkun.pe.kr">제 블로그 메인</a>에 적용되어 있습니다. <img src='http://www.yangkun.pe.kr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
<pre class="brush: php">
&lt; ?php if (have_posts()) : ?&gt;
&lt; ?php while (have_posts()) : the_post(); ?&gt;
&lt; ?php the_post_thumbnail();  // 썸네일 출력?&gt;
&lt; ?php the_excerpt();  // 포스트 요약 출력?&gt;
&lt; ?php endwhile; ?&gt;
&lt; ?php endif; ?&gt;
</pre>
<p>더 멋진건,<br />
<a href="http://www.bravenewcode.com/wptouch/">wptouch 라는 플러그인</a>을 설치하면 아이폰에서 블로그가 이렇게 보일 수 있습니다. ^^</p>
<div id="attachment_725" class="wp-caption aligncenter" style="width: 330px"><img class="size-full wp-image-725" title="wptouch 적용후 아이폰에서의 블로그 화면" src="http://www.yangkun.pe.kr/wp-content/uploads/2010/01/Mobile-Photo-2010.-1.-7.-20-17-46.jpg" alt="wptouch 적용후 아이폰에서의 블로그 화면" width="320" height="480" /><p class="wp-caption-text">아이폰에서 사파리로 접속 시 화면 (wptouch + post thumbnail)</p></div>
<p>아이폰에서 사파리로 http://yangun.pe.kr 접속하시면 보실 수 있습니다.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yangkun.pe.kr/post/717/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
