「Customizable Post Listings」は、色々なことを表示してくれるプラグインです・・・・色々・・・最新の投稿とか、ランダム表示とか、コメントがあった投稿とか、更新された投稿とか・・・ぶっちゃけ詳しくわかりません!!
何故設置したかというと、古い記事を気合入れて更新しても・・・誰にも気づいてもらえず何とかして少しは目立つようにしたかったからです (o^v^o)えへ そこで、探して見つかったのがこれでした!!
という事で、最初に言っておきますと、「Customizable Post Listings」についての設置説明は「サイドバーに更新された記事を表示させる」説明限定であります!! σ(^◇^;)ヒヤアセ
設定方法
こちらからダウンロードいつものように解凍したら、「/wp-content/plugins/」に転送
あとは、「管理画面」の「プラグイン」より有効化
使用方法
「sidebar.php」の表示させたいところに、下記を記述<ul>
<?php c2c_get_recently_modified(); ?>
</ul>
一応、参考までにその他の記述方法を・・・
カスタマイズ
微妙なカスタマイズですが・・・σ(^◇^;)ヒヤアセ表示方法の変更
「customizable-post-listings.php」の851行目あたりが更新表示のところなので・・・
function c2c_get_recently_modified( $num_posts = 5,
$format = "<li>%post_URL%<br /> 更新日: %post_modified%</li>",
$categories = '', // space separated list of category IDs -- leave empty to get all
$order = 'DESC', // either 'ASC' (ascending) or 'DESC' (descending)
$offset = 0, // number of posts to skip
$date_format = 'Y年n月j日', // Date format, php-style, if different from blog's date-form
赤文字の部分を変更すると、左に表示されているサイドバーの「最近の更新記事」の状態になります。$format = "<li>%post_URL%<br /> 更新日: %post_modified%</li>",
$categories = '', // space separated list of category IDs -- leave empty to get all
$order = 'DESC', // either 'ASC' (ascending) or 'DESC' (descending)
$offset = 0, // number of posts to skip
$date_format = 'Y年n月j日', // Date format, php-style, if different from blog's date-form
※日本語を含ませる場合は、保存方法は対応した文字コードで保存してください。(UTF-8 とか EUC とか・・・) ・・・わからなければ半角英語が安全 (;^_^A アセアセ
その他の記述方法
最新記事の場合<ul>
<?php c2c_get_recent_posts(); ?>
</ul>
ランダム記事の場合
<?php c2c_get_recent_posts(); ?>
</ul>
<ul>
<?php c2c_get_random_posts(); ?>
</ul>
コメントのあった記事の場合
<?php c2c_get_random_posts(); ?>
</ul>
<ul>
<?php c2c_get_recently_commented(); ?>
</ul>
<?php c2c_get_recently_commented(); ?>
</ul>
以上終了です。
関係のある記事
No user の書き込みがあります
コメントほしぃ~よぉ~ σ(^◇^;)