2007年7月7日

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

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

WPのプラグイン:WP-PostViews

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.

説明:各投稿の閲覧数を表示

WP ver.:2.2 で確認済み

ダウンロード:WP-PostViews « Extend › Plugins

導入:

  1. postviewsフォルダごとプラグインフォルダに入れて有効化

使用法:各投稿ごとに閲覧回数を表示

  1. wp-content/themes/<使用テーマ名>/index.phpを開く(お好みによりsingle.php、post.php もしくは page.phpも)
  2. 次のコードを探す
    <?php while (have_posts()) : the_post(); ?>
  3. 上記コード以下の任意の場所に次のコードを挿入する
    <?php if(function_exists('the_views')) { the_views(); } ?>

使用法:表示サイドバー等に投稿と固定ページの閲覧数トップ10を表示(デフォルト)

  1. サイドバー等のファイル(ループの外)を開く
  2. 任意の場所に次のコードを挿入する
    <?php if (function_exists('get_most_viewed')): ?>
    <?php get_most_viewed(); ?>
    <?php endif; ?>
  • get_most_viewed()('post', 15)とすると投稿のみの閲覧数のトップ15を表示する
  • 対象を固定ページのみにするには最初の引数に'page'を設定する

使用法:特定のカテゴリーの閲覧数トップ10を表示

  1. サイドバー等のファイル(ループの外)を開く
  2. 任意の場所に次のコードを挿入する
    <?php if (function_exists('get_most_viewed_category')): ?>
    <?php get_most_viewed_category(1, 'post', 10); ?>
    <?php endif; ?>
  • <?php get_most_viewed_category(x, y, z); ?>
    引数x:カテゴリーID
    引数y:’post’、’page’ もしくは ‘both’.
    引数z:表示数

備考:

  • デフォルトで「Views」「N/A」と表示されるところを「回」「該当無し」と表示させるにはwp-postviews-ja.moをダウンロードしてpostviewsフォルダに入れてください。
  • Daily Top 10 Postsと機能的に似ている

この他の「アクセス解析/統計データ」関連のプラグイン:

This entry was posted in WordPress, WP プラグイン. Bookmark the permalink.

4 Responses to WPのプラグイン:WP-PostViews

  1. Pingback: WP-PostViewsの日本語化 | H2+ Goes On

  2. Pingback: wordpressにポストごとのビュー数を表示するプラグイン「WP-PostViews」 – vanillate

  3. Pingback: WP-PostViewsではてブ表示と、本文に表示する方法 | WgimP

  4. Pingback: WP-PostViewsではてブ表示と、本文に表示する方法 | WORDPRESSからの~

コメントを残す

メールアドレスが公開されることはありません。

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>