Registry First Aid will find these invalid entries and remove them from your registry. With Registry First Aid, your Windows registry will be always clean and correct, helping your programs load faster and speeding up your computer. Fast, easy to use, PC speed testing and benchmarking. PassMark PerformanceTest allows you to objectively benchmark a x blades keygen PC using a variety of different speed tests and compare the results to other computers. Twenty-eight standard benchmark tests are available in six test suites plus there are seven advanced testing windows for custom benchmarking. In addition to the standard tests, there are 7 summary results plus the overall PassMark Rating result. The benchmark results are xilisoft keygen presented as easy to read bar charts so that you dont need to spend hours studying the number to know the result. Timing for the tests is done using high resolution timers, which are accurate to approximately 1 millionth of a second on most PCs. Create professional-quality advertising, sophisticated print designs and electronic documents with PagePlus sims 2 keygen X5, the best-in-class desktop publisher.
wordlog.com » Different looks for different category pages
経由
Category Templates « WordPress Codex
より翻訳引用要約
WordPress 1.5 以降から採用されたテンプレート機能を使えば、かつて無いほど柔軟にサイトの見栄えを変更することが出来る。
特定のカテゴリーにはどのテンプレートファイルが使用されるのか
WordPress はカテゴリーを表示する際に、次のリストの上から順に最初に見つけたテンプレートを使用する。ここでは仮に表示するカテゴリーのID番号を6とする。
- category-6.php
- category.php
- archive.php
- index.php
すべてのカテゴリーページにメインのページとは違うテンプレートを適用するには、使用するテーマのディレクトリに
category.phpというファイル名のファイルを作成する。あるカテゴリーに他のカテゴリーや他のページとは違うテンプレートを適用するには、例えばカテゴリーのID番号が6とすると、
category-6.phpというファイル名のファイルを作成する。上のファイルはゼロから作る必要は無い。
archive.phpやindex.php、もしくはpage.phpをコピーして改造すればよい。カテゴリー・ページの例
すべてのカテゴリー・ページに特定の同じ文を表示させる
使用するテーマのディレクトリに
category.phpというファイル名のファイルを作成し、ループの上に次のコードを挿入する:<div id="sticky-snip"> ここにすべてのカテゴリー・ページに表示させたい文を入れる </div>各カテゴリーごとに別の文を表示させる
例として、各カテゴリー・ページの上部に次のような文を表示させたいとする
- 「チーズ」カテゴリー用の文として「これらの投稿はすべてチーズに関するものである」
- 「短パン」カテゴリー用の文として「オレは長ズボンをはかない」
- 上2つのカテゴリー以外のすべてのカテゴリー用として「以下は特定の話題を扱った投稿のリストである」
手順は:
- 上記のように
category.phpを作成し、ループの上に次を挿入する<div id="sticky-snip"> 以下は特定の話題を扱った投稿のリストである </div>- 「チーズ」カテゴリーのカテゴリーID番号を調べる。ここではそのID番号を仮に6としよう。上記のように
category-6.phpを作りループの上に次を挿入する<div id="sticky-snip"> これらの投稿はすべてチーズに関するものである </div>- 「短パン」カテゴリーのカテゴリーID番号を調べる。ここではそのID番号を仮に19としよう。上記のように
category-19.phpを作りループの上に次を挿入する<div id="sticky-snip"> オレは長ズボンをはかない </div>全文ではなく抜粋のみを表示する
カテゴリー・ページのサイズを小さくするため、各投稿の文章を全部表示させる代わりにその抜粋を表示させることができる。WordPress 1.5 に含まれるデフォルト・テーマ内の
archive.phpを調べればどのようにするか分かるだろう。簡単に説明すると、上記のようにcategory.phpを作り、the_excerpt()を使用する。<?php the_content(); ?>の代わりに
<?php the_excerpt(); ?>を使用する。
Pingback: WPのカテゴリ関連のplugin情報 and more at stlog @word weblog
Pingback: WordPressノウハウ~走り書き~ - typista