Standing Tall

あれとかこれとか

Standing Tall header image 2
2007年7月7日

新しいサイト”わーどぷれすっ!”をオープンしました。

今後はWordPress関連の話題は全部このサイトに投稿していきます。プラグイン一覧もこの新サイトに移しましたので、ドウゾよろしくお願いします。

WP のプラグイン:Weighted Categories

2005 年 3 月 20 日
投稿者: tai

flickrのpopular tagsのように投稿数の多いカテゴリーほど大きなフォントで表示する。

例えばこんな感じ

Weighted Categoriesより使い方の引用訳

  1. まずこのリンク先のテキストに「weighted_categories.php」と名前を付けて自分のプラグインディレクトリに保存
  2. プラグイン管理画面でこのプラグインを作動させる
  3. このWeighted Categoriesを表示させたい場所(例えばarchives.php)に次のコードを挿入:
  4. $minfont$maxfont で最小フォントと最大フォントの大きさを設定する。フォントサイズの単位(pt、px、emなど)も $fontunit で設定することができる。除外したいカテゴリーがある場合はそのカテゴリーIDを $category_ids_to_exclude
    に設定する
  5. 私の場合は外観を整えるのに次のコードをCSSに追加した
    
    #categories { border: 1px solid #ccc; background-color: #eee;
    	padding: 10px; width: 500px; text-align: justify; }
    #categories a { text-decoration: none; }
    

: コメントなし

Leave A Comment

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.