Wordpressで「最新の投稿」に日付を表示したいと思い調べてみた。
ちなみに筆者のテーマはvicunaを利用しているので、違うテーマの場合は変更内容が違うかもしれない。
手順
- Scott Reilly’s WordPress Plugins Pluginsから、customizable-post-listingsというプラグインをダウンロード+pluginsディレクトリに展開
- 管理画面でcustomizable-post-listingsプラグインを有効にする
- サイドバー(sidebar.php)を以下の様に変更
<?php wp_get_archives('type=postbypost&limit=5'); ?>↓
<?php c2c_get_recent_posts(5,"<li>%post_URL% (%post_date%)</li>",'','date','DESC',0,'n/j'); ?>参考にさせて頂いた記事:最新のエントリーに投稿日付を表示する for WordPress
関連するかもしれない記事
- WordPress -特定カテゴリのみの最新記事をリスト表示する
- WordPress プラグイン mixiへの同時投稿
- WordPress -Counterize IIプラグインのカウンターをユニークにする
- WordPressプラグイン 同一タグで紐付けて関連記事を表示するSimple Tags
- WordPress -My Category Orderプラグイン導入
他のブログも読む



One Response
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.
Continuing the Discussion