<?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>はやとも　-hayatomo.com- &#187; wordpress</title>
	<atom:link href="http://hayatomo.com/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://hayatomo.com</link>
	<description>画家 × Web Engineer</description>
	<lastBuildDate>Sat, 14 Aug 2010 16:30:06 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hayatomo.com/tag/wordpress/feed" />
		<item>
		<title>WordPressでKtai Styleを導入してみた</title>
		<link>http://hayatomo.com/2009/04/13/86</link>
		<comments>http://hayatomo.com/2009/04/13/86#comments</comments>
		<pubDate>Mon, 13 Apr 2009 10:27:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://hayatomo.com/?p=86</guid>
		<description><![CDATA[WordPressの携帯端末用Plug-inは前までは、評判のよいものがなかなか見つかりませんでしたが、最近、Ktai Styleというものを発見しました。結構しっかりと作られているっぽいので、このサイトにも導入してみま ]]></description>
			<content:encoded><![CDATA[<p>WordPressの携帯端末用Plug-inは前までは、評判のよいものがなかなか見つかりませんでしたが、最近、Ktai Styleというものを発見しました。結構しっかりと作られているっぽいので、このサイトにも導入してみました。</p>
<p>↓ これ</p>
<p><a href="http://wppluginsj.sourceforge.jp/ktai_style/" target="_blank">http://wppluginsj.sourceforge.jp/ktai_style/</a></p>
<p>携帯用のテーマが既存でいくつか用意されているので、便利です。</p>
<p>このテーマをいろいろといじってみようと思います。</p>
]]></content:encoded>
			<wfw:commentRss>http://hayatomo.com/2009/04/13/86/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hayatomo.com/2009/04/13/86" />
	</item>
		<item>
		<title>FTP接続できなくても自動アップグレードは可能（wordpress）</title>
		<link>http://hayatomo.com/2009/04/09/77</link>
		<comments>http://hayatomo.com/2009/04/09/77#comments</comments>
		<pubDate>Thu, 09 Apr 2009 12:09:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://hayatomo.com/?p=77</guid>
		<description><![CDATA[自動アップグレード機能を使用すると、環境によって、「接続情報」画面が表示されます。
調べてみるとwordpressのインストールしたサーバのFTP接続情報（ホスト、ID、PW）を入力するらしいのですが、wordpress ]]></description>
			<content:encoded><![CDATA[<p>自動アップグレード機能を使用すると、環境によって、「接続情報」画面が表示されます。</p>
<p>調べてみるとwordpressのインストールしたサーバのFTP接続情報（ホスト、ID、PW）を入力するらしいのですが、wordpressソースのパーミッション等を変更することにより、FTP接続情報を入力しなくても、自動アップグレードは可能であることが分かりました。</p>
<p>※環境はレンタルサーバではなく、自前サーバなので、この例は特殊かもしれません。</p>
<p><span style="color: #ff0000;">≪環境情報≫</span></p>
<ul>
<li><span style="">wordpressソースはapacheグループ</span></li>
<li><span style="">ディレクトリのパーミッションは775</span></li>
<li><span style="">ファイルのパーミッションは664</span></li>
</ul>
<p><span style="color: #ff0000;">≪変更したこと≫</span></p>
<ul>
<li><span style="">下記コマンドを実行して、</span><span style="">自動アップグレード実行ファイルをapacheユーザにした</span>
<ul>
<li><span style=""># chown apache.apache wp-admin/update.php</span></li>
<li><span style=""># chown apache.apache wp-admin/update-core.php</span></li>
</ul>
</li>
</ul>
<p>※「update.php」はplug-inのアップグレード実行ファイルであり、plug-inが自動アップグレードできることを確認しましたが、「update-core.php」はwordpress自体のアップグレード実行ファイルであると予想し、自動アップグレードできることは確認しておりません。</p>
<p>（でも、もともとパーミッションが664なのに、何故、ファイルオーナーを変更しないといけなかったんだろう。。。謎です。。。）</p>
]]></content:encoded>
			<wfw:commentRss>http://hayatomo.com/2009/04/09/77/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hayatomo.com/2009/04/09/77" />
	</item>
		<item>
		<title>HTMLのコメントアウトが＆#8211;に変換されてしまう。</title>
		<link>http://hayatomo.com/2009/03/07/8</link>
		<comments>http://hayatomo.com/2009/03/07/8#comments</comments>
		<pubDate>Sat, 07 Mar 2009 10:36:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://hayatomo.com/?p=8</guid>
		<description><![CDATA[filter機能を初期設定のまま使用すると、HTMLのコメントアウト（改行を含んだ記述の場合）が&#38;#8211;に変換されてしまいます。
例）
&#60;!&#8211;
ここはコメント
&#8211;&#62;
↓変 ]]></description>
			<content:encoded><![CDATA[<p>filter機能を初期設定のまま使用すると、HTMLのコメントアウト（改行を含んだ記述の場合）が&amp;#8211;に変換されてしまいます。</p>
<p>例）<br />
&lt;!&#8211;<br />
ここはコメント<br />
&#8211;&gt;<br />
↓変換<br />
&lt;!&#8211;<br />
ここはコメント<br />
&amp;#8211;&gt;</p>
<p>こうなると、コメントアウトがコメントアウトではなくなってしまい、困るので、次の解決方法を取りました。</p>
<p><span id="more-8"></span>＜解決策１＞<br />
プラグイン等でwptexturize関数をfilterから外してしまう。<br />
remove_filter (&#8216;the_content&#8217;,  &#8216;wptexturize&#8217;);</p>
<p>＜解決策２＞<br />
wptexturize関数を書き換える。（でもコアソースをいじると、WordPressのUPDATEのときとかに困るので、あまりやりたくないです。）<br />
formatting.php (21,22行目)<br />
$static_characters = array_merge(array(&#8216;&#8212;&#8217;, &#8216; &#8212; &#8216;, &#8216;&#8211;&#8217;, &#8216;xn&amp;#8211;&#8217;, &#8216;&#8230;&#8217;, &#8216;&#8220;&#8217;, &#8221;s&#8217;, &#8221;&#8221;, &#8216; &#8482;&#8217;), $cockney);<br />
$static_replacements = array_merge(array(&#8216;&amp;#8212;&#8217;, &#8216; &amp;#8212; &#8216;, &#8216;&amp;#8211;&#8217;, &#8216;xn--&#8217;, &#8216;&amp;#8230;&#8217;, &#8216;&amp;#8220;&#8217;, &#8216;&amp;#8217;s&#8217;, &#8216;&amp;#8221;&#8217;, &#8216; &amp;#8482;&#8217;), $cockneyreplace);<br />
↓<br />
$static_characters = array_merge(array(&#8216;&#8212;&#8217;, &#8216; &#8212; &#8216;, &#8216;&#8211;&#8217;, &#8216;xn&amp;#8211;&#8217;, &#8216;&#8230;&#8217;, &#8216;&#8220;&#8217;, &#8221;s&#8217;, &#8221;&#8221;, &#8216; &#8482;&#8217;), $cockney);<br />
$static_replacements = array_merge(array(&#8216;&amp;#8212;&#8217;, &#8216; &amp;#8212; &#8216;, &#8216;&#8211;&#8217;, &#8216;xn--&#8217;, &#8216;&amp;#8230;&#8217;, &#8216;&amp;#8220;&#8217;, &#8216;&amp;#8217;s&#8217;, &#8216;&amp;#8221;&#8217;, &#8216; &amp;#8482;&#8217;), $cockneyreplace);</p>
<p>今回は、解決策１を用いました。</p>
<p>他にも↓とかある。それぞれ何やってるか、後でチェックだね。<br />
0 : wptexturize<br />
0 : convert_chars<br />
0 : prepend_attachment<br />
0 : do_shortcode</p>
]]></content:encoded>
			<wfw:commentRss>http://hayatomo.com/2009/03/07/8/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hayatomo.com/2009/03/07/8" />
	</item>
		<item>
		<title>runPHPでphpタグがそのまま表示される。</title>
		<link>http://hayatomo.com/2009/03/04/6</link>
		<comments>http://hayatomo.com/2009/03/04/6#comments</comments>
		<pubDate>Wed, 04 Mar 2009 10:02:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://hayatomo.com/?p=6</guid>
		<description><![CDATA[１．プラグインでrunPHPのプラグインを使用する
２．設定＞投稿設定で「不正にネスト化したXHTMLを自動的に修正する」のチェックを外す
３．ページ作成時に「run PHP code?」にチェックを入れる。
４．ページ ]]></description>
			<content:encoded><![CDATA[<p>１．プラグインでrunPHPのプラグインを使用する<br />
２．設定＞投稿設定で「不正にネスト化したXHTMLを自動的に修正する」のチェックを外す<br />
３．ページ作成時に「run PHP code?」にチェックを入れる。<br />
４．ページ作成時はビジュアルタブで編集しない。（押下した時点でタグが変換されてしまうから）</p>
<p>上記の設定を行っているのに、phpタグがそのまま表示されてしまいました。<br />
いろいろと調べているうちにfilter機能を適用してないのが原因だと分かりました。</p>
<p><span id="more-6"></span>＜原因＞<br />
コンテンツを吐き出すところで、<br />
&lt;?php if (have_posts()) : ?&gt;</p>
<p>&lt;?php while (have_posts()) : the_post(); ?&gt;</p>
<p>&lt;?php echo get_the_content(); ?&gt;</p>
<p>&lt;?php endwhile; ?&gt;<br />
&lt;?php endif; ?&gt;<br />
と、記載していました。<br />
正しくは以下です。<br />
&lt;?php if (have_posts()) : ?&gt;</p>
<p>&lt;?php while (have_posts()) : the_post(); ?&gt;</p>
<p>&lt;?php the_content(); ?&gt;</p>
<p>&lt;?php endwhile; ?&gt;<br />
&lt;?php endif; ?&gt;</p>
<p>要するに、runPHPはfilter機能を用いてphpタグを変換していており、<br />
&lt;?php echo get_the_content(); ?&gt;と書くと、filter機能を適用せずに表示される為<br />
phpタグがそのまま表示されてしまったのです。</p>
<p>しかし、&lt;?php the_content(); ?&gt;を使うと、それはそれで問題が・・・。それは次で。。。</p>
]]></content:encoded>
			<wfw:commentRss>http://hayatomo.com/2009/03/04/6/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hayatomo.com/2009/03/04/6" />
	</item>
	</channel>
</rss>
