Category Tagging with Sort on PHP

add to hatena hatena.comment 0 user add to del.icio.us 0 user add to livedoor.clip 0 user

はじめに

Category TaggingのVersion 1.3を基にしたWordPressプラグインです。
こちらのエントリのような状況に陥った場合に、カテゴリのソート順を正常にすることができます。

ダウンロード

Category tagging with Sort on PHP ver.0.1 (only for WordPress 2.0.x)

使いかた

  1. プラグインファイルをダウンロードし、展開
  2. 展開してできたcategory-tagging-with-sort-on-php.phpをWordPressのプラグインフォルダにアップロード
  3. WordPressの管理ページメニューから「プラグイン」を選択し、「Category tagging with Sort on PHP」を有効化
  4. テンプレートのタグクラウドを表示させたい位置に、以下のように記述する
  5. 
    <?php
    	if (function_exists ('cattag_tagcloud') ) {
    		echo '<div class="tagcloud">' . cattag_tagcloud(7,25,0,'NAME_ASC','','<span><a rel="tag" href="%link%" title="%description%" style="font-size:%size%pt">%title%</a></span>') . '</div>';
    	}
    ?>
    

使用法の詳細については、Category Taggingを参照してください。

Leave a Reply