<?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>Baliプロジェクト &#187; WordPressの工房</title>
	<atom:link href="http://bali.to/archives/category/wordpress%e3%81%ae%e5%b7%a5%e6%88%bf/feed" rel="self" type="application/rss+xml" />
	<link>http://bali.to</link>
	<description>ソフトウェアの研究所</description>
	<lastBuildDate>Wed, 09 Dec 2009 00:24:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPressでソケット指定でMySQLへ接続する方法</title>
		<link>http://bali.to/archives/58</link>
		<comments>http://bali.to/archives/58#comments</comments>
		<pubDate>Wed, 09 Dec 2009 00:24:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPressの工房]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[ソケット]]></category>
		<category><![CDATA[接続]]></category>

		<guid isPermaLink="false">http://bali.to/?p=58</guid>
		<description><![CDATA[WordPressのインストールでMySQLのソケット指定で接続したい場合、wp-config.phpファイルに下記のように設定を追加することが必要です。
define('DB_HOST','localhost:/tmp/mysql.sock');
]]></description>
		<wfw:commentRss>http://bali.to/archives/58/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPressでMySQLのポートを指定する方法</title>
		<link>http://bali.to/archives/55</link>
		<comments>http://bali.to/archives/55#comments</comments>
		<pubDate>Tue, 08 Dec 2009 19:46:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPressの工房]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[インストール]]></category>
		<category><![CDATA[ポート]]></category>

		<guid isPermaLink="false">http://bali.to/?p=55</guid>
		<description><![CDATA[サーバに複数のMySQLが動作する場合、別々のポートで稼動することが必要です。WordPressで指定のMySQLを利用したい場合、Wordpressの「wp-config.php」ファイルを下記のように指定することが必要です。
define(’DB_HOST’, ‘127.0.0.1:3307′);　
この例では、MySQLのポートは 3307となっています。
]]></description>
		<wfw:commentRss>http://bali.to/archives/55/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPressのadminパスワードをリセットする方法</title>
		<link>http://bali.to/archives/53</link>
		<comments>http://bali.to/archives/53#comments</comments>
		<pubDate>Thu, 16 Apr 2009 16:04:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPressの工房]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[パスワード]]></category>

		<guid isPermaLink="false">http://bali.to/?p=53</guid>
		<description><![CDATA[WordPressのadminパスワードが忘れた時に、リセットを行うことが必要です。そのリセット方法について簡単に述べてみます。
１．MySQLへ接続して
[root@ns public_html]# /usr/local/mysql6/bin/mysql -u root -p
Enter password:
２．データベースを選択
例：データベース名が wordpressの場合、
use wordpress;
３．パスワードを変更
UPDATE `wp_users` SET `user_pass` = MD5( 'パスワード' ) WHERE `wp_users`.`user_login` = "admin";
WordPressへログインして、新パスワードを確認ください。
]]></description>
		<wfw:commentRss>http://bali.to/archives/53/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>記事の長さを調整すること</title>
		<link>http://bali.to/archives/49</link>
		<comments>http://bali.to/archives/49#comments</comments>
		<pubDate>Mon, 26 Jan 2009 21:07:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPressの工房]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[長さ]]></category>

		<guid isPermaLink="false">http://bali.to/?p=49</guid>
		<description><![CDATA[記事の長さを調整するために、functions.php ファイルに次のスクリプトを追加することで簡単にできます。

&#60;?

// 30半角文字まで
add_filter('excerpt_length', 'my_excerpt_length');
function my_excerpt_length($length) {
return 30; // Or whatever you want the length to be.
}
?&#62;

]]></description>
		<wfw:commentRss>http://bali.to/archives/49/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpressのテンプレートを作成</title>
		<link>http://bali.to/archives/33</link>
		<comments>http://bali.to/archives/33#comments</comments>
		<pubDate>Tue, 02 Dec 2008 10:41:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPressの工房]]></category>
		<category><![CDATA[テンプレート]]></category>
		<category><![CDATA[作成]]></category>

		<guid isPermaLink="false">http://bali.to/?p=33</guid>
		<description><![CDATA[Wordpressのテンプレートはインターネットにたくさんありますが、テンプレートの作成方法はわからない人が少なくないとおもいます。自分で作成したいけど、作成方法はわからないとか。そこで、簡単なテンプレートの作成方法を紹介してみます。

まずテンプレートの定義を設定することが必要です。たとえば、下記のようにヘッダーの部分に下記のようにテンプレート名は bali.toとして作成しましょう。

&#60;?php /* Template Name: bali.to
*/ 

?&#62;

次、テンプレートの内容を作成すればいいですが、作成するために、PHPスクリプトの知識と基本的なWordpressの関数を覚えることが必要です。
例えば、アーカイブのテンプレートを作成してみましょう。

&#60;?php /* Template Name: bali.to
*/ ?&#62;

&#60;?php get_header(); ?&#62;

	&#60;h1&#62;アーカイブ&#60;/h1&#62;

	&#60;h2&#62;件名のアーカイブ&#60;/h2&#62;
	&#60;ul&#62;
		&#60;?php wp_list_cats(); ?&#62;
	&#60;/ul&#62;

	&#60;h2&#62;月のアーカイブ&#60;/h2&#62;
	&#60;?php wp_get_archives(); ?&#62;

&#60;?php get_footer(); ?&#62;

このファイルをwp-content/themes以下へ保管して、管理画面からテンプレートを有効にすれば、動作確認を行えます。
簡単ですよね。もっと色々関数やディサインを工夫すれば、きれいなテンプレートも作成できますよね。
]]></description>
		<wfw:commentRss>http://bali.to/archives/33/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ログイン画面をカスタマイズする</title>
		<link>http://bali.to/archives/30</link>
		<comments>http://bali.to/archives/30#comments</comments>
		<pubDate>Tue, 02 Dec 2008 10:23:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPressの工房]]></category>
		<category><![CDATA[カスタマイズ]]></category>
		<category><![CDATA[ログイン]]></category>
		<category><![CDATA[画面]]></category>

		<guid isPermaLink="false">http://bali.to/?p=30</guid>
		<description><![CDATA[Wordpressのログイン画面をカスタマイズするために、wp-admin/images/login-bkg-tile.gif と login-bkg-bottom.gifファイルを上書きすればよいですが、Wordpressのエンジンをアップデートする度に新ファイルで上書きされてディフォルトのままに戻ってしまいます。
Wordpressエンジンをアップデートする度にログイン画面はかわらないようにするために、テンプレートでログイン画面を作成することです。しかし、これはPHPスクリプトを理解できる人間だけができるですね。その他の方法はログインプラグインを利用する方法です。
http://wordpress.org/extend/plugins/bm-custom-login/bm-custom-login.zipからプラグインをダウンロードして、インストールすれば、ログイン画面をカスタマイズできますね。
]]></description>
		<wfw:commentRss>http://bali.to/archives/30/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>functions.phpを利用する</title>
		<link>http://bali.to/archives/27</link>
		<comments>http://bali.to/archives/27#comments</comments>
		<pubDate>Tue, 02 Dec 2008 10:15:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPressの工房]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[関数]]></category>

		<guid isPermaLink="false">http://bali.to/?p=27</guid>
		<description><![CDATA[Wordpressに希望関数を追加したり、あるファイルを読み込みしたりしたい場合、Wordpressエンジンを修正して、行う人がすくなくないでしょう。Wordpressエンジンをアップデートしたときに、修正された箇所は維持できなくなる恐れがありますので、テンプレートにfunctions.phpを利用すれば、エンジンをアップデートしても安全です。
functions.phpの役割は色々ありますが、例として述べてみます。まず、ファイルを呼び出すためのものです。特定PHPファイルを呼び出したい場合、このfunctions.phpファイルを利用すれば簡単に実現できます。そのためにエンジンをアップデートしてもテンプレートは変更されないかぎり、問題はありません。
それから、関数を追加することもこのfunctions.phpを利用することができます。エンジンに新関数を追加するよりもテンプレートにこのファイルを利用して、関数を追加することができます。functions.phpファイルはないテンプレートは多いかと思いますが、正しい利用方法を行えば、自分のブログも管理しやすくなれます。試してみては？
]]></description>
		<wfw:commentRss>http://bali.to/archives/27/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>syntaxhighlighterでソースコードの記事を表示させる</title>
		<link>http://bali.to/archives/21</link>
		<comments>http://bali.to/archives/21#comments</comments>
		<pubDate>Tue, 02 Dec 2008 10:03:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPressの工房]]></category>
		<category><![CDATA[syntaxhighlighter]]></category>
		<category><![CDATA[ソースコード]]></category>

		<guid isPermaLink="false">http://bali.to/?p=21</guid>
		<description><![CDATA[Ｗｏｒｄｐｒｅｓｓでは、ソースコードを表示させるためには色々プラグインがありますが、syntaxhighlighterという面白いプラグインを紹介したいと思います。インストールと設定も簡単に行えますので、楽々ソースコードを表示させます。
まずソースコードをダウンロードして、管理画面からプラグインをインストールしてみましょう。PHPを利用している者なら、
～のようにソースコードを表示できます。現在対応できるソースコードは下記のようになっています。

C++ &#8212; cpp, c, c++
C# &#8212; c#, c-sharp, csharp
CSS &#8212; css
Delphi &#8212; delphi, pascal
Java &#8212; java
JavaScript &#8212; js, jscript, javascript
PHP &#8212; php
Python &#8212; py, python
Ruby &#8212; rb, ruby, rails, ror
SQL &#8212; sql
VB &#8212; vb, vb.net
XML/HTML &#8212; xml, html, xhtml, xslt

詳しくは、http://wordpress.org/extend/plugins/syntaxhighlighter/をみてください。
]]></description>
		<wfw:commentRss>http://bali.to/archives/21/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>404エラーページを作成</title>
		<link>http://bali.to/archives/16</link>
		<comments>http://bali.to/archives/16#comments</comments>
		<pubDate>Tue, 02 Dec 2008 09:51:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPressの工房]]></category>
		<category><![CDATA[404エラー]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[ページ]]></category>
		<category><![CDATA[裏技]]></category>

		<guid isPermaLink="false">http://bali.to/?p=16</guid>
		<description><![CDATA[エラーページを作成するために、簡単に述べてみます。まず通常のファイルを404.phpへコピーして、不要なもの及びループの関数を削除します。最後にquery_posts関数を利用して、最近の投稿を表示させます。
例として、次のように404.phpスクリプトを作成してみます。

&#60;?php get_header(); ?&#62;

	&#60;h1&#62;404 - エラー&#60;/h1&#62;

	&#60;p&#62;みたいページは存在していません。&#60;/p&#62;
	&#60;p&#62;どちらかを選択して、お進めください。&#60;/p&#62;

	&#60;ul&#62;
		&#60;li&#62;検索フォームからページを検索ください。&#60;/li&#62;
		&#60;li&#62;トップページ &#60;a href=&#34;http://bali.to/&#34;&#62;へアクセスください。&#60;/a&#62;&#60;/li&#62;
		&#60;li&#62; &#60;/a&#62;&#60;a href=&#34;http://bali.to/archives/&#34;&#62;アーカーブ&#60;/a&#62;を探していますか。&#60;/li&#62;
		&#60;li&#62;あるいは最近の記事を下記のように確認ください。&#60;/li&#62;
	&#60;/ul&#62;

	&#60;h3&#62;最近の記事&#60;/h3&#62;

	&#60;ul&#62;
	&#60;?php
	query_posts('posts_per_page=5');
	if (have_posts()) : while (have_posts()) : the_post(); ?&#62;
	&#60;li&#62;&#60;a href=&#34;&#60;?php the_permalink() ?&#62;&#34; title=&#34;Permalink for : &#60;?php the_title(); ?&#62;&#34;&#62;&#60;?php the_title(); ?&#62;&#60;/a&#62;
	&#60;?php endwhile; endif; ?&#62;
	&#60;/ul&#62;

&#60;?php get_footer(); ?&#62;

簡単ですよね。自分の好みで色々追加することもできますので、試してください。
404エラーがあった時に、特定のページをアクセスするように誘導するために、.htaccessファイルでも設定できます。
例として、.htaccessファイルに次の設定を追加してみてください。
ErrorDocument 404 /index.php?error=404
設定に旨く行かない場合、この記事をコメントください。
]]></description>
		<wfw:commentRss>http://bali.to/archives/16/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress に SPAMを防止するプラグイン</title>
		<link>http://bali.to/archives/8</link>
		<comments>http://bali.to/archives/8#comments</comments>
		<pubDate>Wed, 26 Nov 2008 23:05:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPressの工房]]></category>

		<guid isPermaLink="false">http://bali.to/?p=8</guid>
		<description><![CDATA[SPAMを全滅するために、色々なWordPressのプラグインがありますが、簡単に紹介してみます。WordPressバージョンによって使えるものと使えないものがあるかもしれません。
Akismet 有名なプラグインですが、いつもWordPressパッケージにバンドルとなります。利用するために、WordPress.comへサインアップして、APIを利用できます。

Defensio.com　OpenIDをサポートできるSPAMプラグインです。

Simple CAPTCHA コメントにCAPTCHAを入力する制限です。単純で結構効果があります。

Simple Trackback Validation トラックバックによいSPAM対策のプラグインです。

まだ他にも沢山ありますが、まずこれでいいですよね。
]]></description>
		<wfw:commentRss>http://bali.to/archives/8/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

