2013年09月10日 追記・変更

最終更新日を読者に伝えて、新しい情報を伝えやすくする
このサイトは頻繁に既存記事を編集するので、編集した事を明示するために最終更新日を表示させる事にした。・記事一覧ページで最終更新日を表示させた

・個別記事ページでも最終更新日を表示させた

具体的な記述 functions.php
funcitons.phpに下記を追加した。<?php // 最終更新日表示のための関数 function get_mtime($format) { $mtime = get_the_modified_time('Ymd'); $ptime = get_the_time('Ymd'); if ($ptime > $mtime) { return get_the_time($format); } elseif ($ptime === $mtime) { return null; } else { return get_the_modified_time($format); } } ?>
表示させたい箇所に下記を記述
<div align="right"> <?php if ($mtime = get_mtime('Y年m月d日')) echo $mtime , ' 追記・変更'; ?> </div>