<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>はなとみかん &#187; Ktai Entry</title>
	<atom:link href="http://hanatomikan.com/tag/ktai-entry/feed" rel="self" type="application/rss+xml" />
	<link>http://hanatomikan.com</link>
	<description>「はなとみかん」はWebデザイン、ホームページ作成、ネットショップ（ショップサーブ、楽天市場、Yahoo!ストア）のデザイン・カスタマイズなどをしているフリーランスのWebデザイナーです。</description>
	<lastBuildDate>Tue, 04 Jan 2011 01:16:14 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hanatomikan.com/tag/ktai-entry/feed" />
		<item>
		<title>写メールとWordPressとTwitter</title>
		<link>http://hanatomikan.com/blog/wordpress/%e5%86%99%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%a8wordpress%e3%81%a8twitter</link>
		<comments>http://hanatomikan.com/blog/wordpress/%e5%86%99%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%a8wordpress%e3%81%a8twitter#comments</comments>
		<pubDate>Tue, 26 Jan 2010 10:49:15 +0000</pubDate>
		<dc:creator>はなとみかん</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Ktai Entry]]></category>
		<category><![CDATA[Photolog]]></category>
		<category><![CDATA[QF-GetThumb]]></category>
		<category><![CDATA[Twitter Tools]]></category>
		<category><![CDATA[カスタマイズ]]></category>
		<category><![CDATA[プラグイン]]></category>

		<guid isPermaLink="false">http://hanatomikan.com/?p=753</guid>
		<description><![CDATA[携帯電話の写メールとWordPressとTwitterを連携させてPhotologを作ってみました。]]></description>
			<content:encoded><![CDATA[<p><img src="http://hanatomikan.com/wp-content/uploads/photolog_start.jpg" title="Photologはじめました" width="536" height="225" class="alignnone size-full wp-image-754" /></p>
<p>最近、Twitterをはじめるお客様が多くなってきて、いろいろと相談を受けることが多くなってきました。</p>
<p>この間も「Twitterって画像付けれるの？」と聞かれ<a href="http://yfrog.com/">yfrog</a>を紹介したのですが、そういえば、WordPressでも同じようなことができるな～と後で気づきました＾＾；</p>
<p>ということで、携帯電話の写メールとWordPressとTwitterを連携させて<a href="http://hanatomikan.com/category/photolog">Photolog</a>を作ってみました。</p>
<ol>
<li>携帯電話から写メールを送る</li>
<li>WordPressが受け取り記事にする</li>
<li>記事が公開されるとTwitterに通知</li>
</ol>
<p>写メールを送った後の2、3は自動で行われます。</p>
<h2>使用したプラグイン</h2>
<ul>
<li><a href="http://wppluginsj.sourceforge.jp/ktai_entry/"><strong>Ktai Entry</strong> (メール投稿プラグイン)</a><br />
携帯電話からメールを送って記事を投稿できるようにします。</li>
<li><a href="http://la-passeggiata.com/?p=331"><strong>QF-GetThumb</strong></a><br />
記事内の画像からサムネイルを自動生成するプラグイン。</li>
<li><strong><a href="http://wordpress.org/extend/plugins/twitter-tools/">Twitter Tools</a></strong><br />
新規投稿があればTwitterに通知します。<br />
私は以前から使っていたのでこのプラグインを使っていますが、<strong><a href="http://wppluginsj.sourceforge.jp/simple-tweet/">Simple Tweet</a></strong>も国産プラグインなので使いやすいと思います。</li>
</ul>
<h2>Photolog用のテンプレートを作る</h2>
<p>ギャラリーっぽいテンプレートを作ります。</p>
<p>テンプレートのループ部分はこんな感じです。</p>
<pre class="brush: php; highlight: [3]; title: ; notranslate">&lt;div id=&quot;photolog&quot;&gt;
&lt;ul&gt;
&lt;?php query_posts($query_string.'&amp;posts_per_page=15'); ?&gt;
&lt;?php if(have_posts()):while(have_posts()):the_post(); ?&gt;
&lt;li id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title();?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php echo the_qf_get_thumb_one('num=0&amp;height=150&amp;crop_w=150&amp;tag=0'); ?&gt;&quot; alt=&quot;&lt;?php the_title();?&gt;&quot; class=&quot;fadeImg&quot; /&gt;&lt;em&gt;&lt;?php the_title();?&gt;&lt;/em&gt;&lt;/a&gt;&lt;span&gt;&lt;?php the_tags( 'Tags: ' , ', '); ?&gt;&lt;/span&gt;&lt;/li&gt;
&lt;?php endwhile; endif ?&gt;
&lt;/ul&gt;
&lt;!-- / #photolog --&gt;&lt;/div&gt;</pre>
<p>基本の投稿数の表示は5件なのですが、Photologだけは5件だと少ないので、ループタグの前に<code>query_posts($query_string.'&amp;posts_per_page=15');</code>と書いて表示数を15件にしています。</p>
<ul>
<li>参考サイト：<a href="http://blog.daichifive.com/archives/164">wordpressでテンプレート毎に記事表示件数を変える</a></li>
</ul>
<p>今までこのサイトでのサムネイル画像はカスタムフィールドで指定したものを表示していたけど、Photologは写メを送るだけで済ませるので、サムネイルを自動生成するプラグイン<a href="http://la-passeggiata.com/?p=331"><strong>QF-GetThumb</strong></a>を使うことにしました。</p>
<p>今回追加したQF-GetThumbは国産プラグインなのでとても使いやすかったｗ<br />
詳しい使い方は配布サイトをご覧くださいませ。</p>
<p>このサイトではカテゴリとしてPhotologを作成しましたが、Photolog用に新たにWordPressを用意しても良いと思います。</p>
<h2>Photologテーマ</h2>
<p>すぐにPhotologを作りたい方にはこちらのような素敵なPhotologテーマもありますよ(*´∀｀)</p>
<p><a href="http://hanatomikan.com/wp-content/uploads/lomohmds.jpg"><img src="http://hanatomikan.com/wp-content/uploads/lomohmds-536x335.jpg" title="lomohmds" width="536" height="335" class="alignnone size-medium wp-image-755" /></a></p>
<p><strong>lomohmds</strong>：<a href="http://hm-blog.jugem.jp/?eid=132">ダウンロード</a>、<a href="http://lomo.hmds.jp/">Demo</a></p>
<p><a href="http://hanatomikan.com/wp-content/uploads/photo-biyori.jpg"><img src="http://hanatomikan.com/wp-content/uploads/photo-biyori-536x335.jpg" title="Photo-Biyori" width="536" height="335" class="alignnone size-medium wp-image-756" /></a></p>
<p><strong>Photo-Biyori</strong>：<a href="http://everydays.hassii.com/photo-biyori">ダウンロード</a>、<a href="http://pb.hassii.com/en/">Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hanatomikan.com/blog/wordpress/%e5%86%99%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%a8wordpress%e3%81%a8twitter/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hanatomikan.com/blog/wordpress/%e5%86%99%e3%83%a1%e3%83%bc%e3%83%ab%e3%81%a8wordpress%e3%81%a8twitter" />
	</item>
	</channel>
</rss>

