Category OrderとKtai Styleのコンフリクト

Category OrderとKtai Styleはコンフリクトを起こします。
両方利用している状態で携帯コンテンツ表示にすると、カテゴリ部分に

Category Order could not understand your category HTML. Please do the following:
Disable all plugins except for category order to see if some other plugin is causing the problem. If the problem goes away, re-enable each plugin until you find the incompatible one.
Try switching to a different theme, like the WordPress default theme.
Once you have tried the above steps, email david@coppit.org with the results of these debugging steps. Also include the following information:
…

というエラー表示。

解決策

カテゴリ順をカスタマイズするプラグインを
Category Order
から
My Category Order
に変更する。

My Category Order導入方法

1.ここからダウンロード
2.pluginsフォルダにアップロードして、管理画面から「利用する」をクリック
3.日本語化した場合は「My Category Orderの日本語版を配布 | Lovelog+*」さんからファイルをダウンロードし、plugins > my-category-orderフォルダ直下にアップロード
4.wp-includes/taxonomy.phpのパーミッションを666に変更
※このファイル、WP2.7には無いという話もあるが、僕のところにはある。なんでだ?新規インストールじゃなくて、バージョンアップだからか?
5.管理画面から、カテゴリを自由にカスタマイズ
6.サイドバー表示を行うテンプレート(sidebar.php等)のカテゴリ表示部分を修正

<?php wp_list_categories('sort_column=name&optioncount=1'); ?>
                     ↓
<?php wp_list_categories('orderby=order&optioncount=1'); ?>

「orderby=order」はカテゴリの表示順をこのプラグインを使う、という引数指定
「optioncount=1」は投稿数を表示するか否か。(表示させないときは=0にする)

これでOK

携帯で表示させつつも、カテゴリの順番を自由にカスタマイズできます。

コメントを残してみる

コメント