plugin-icon

Simple Relative Date

제작자: danivalentin·
A simple way to turn your post/comment date in its relative versions.
버전
1.0
활성화된 설치 항목
10
최근 업데이트일
May 7, 2011

This was based on Lester Chan’s Relative Date plugin. It tries to simplify things a bit. This plugin can:

  • Replace the_date() in the post
  • Replace get_comment_date() or comment_date() in the comments

Note that if your theme is writing the date in a different form, it won’t work. You have to replace its function call to one of the above (in the TwentyTen theme for example, replace twentyten_posted_on() by the_date().

Also important to say that, comment replacement won’t work if you are using the default wp comment renderer because it calls get_comment_time() as well. You have to do a customized callback function to use with wp_list_comments( array( ‘callback’ => ‘your_customized_function_here’ ) ). (ok, maybe things were not simplified that much :/)

There is a options page (under settings in the Admin) where you can choose which dates you want to replace (posts/comments). Posts date are by default checked.

Portuguese translation included.

무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 3.0.5
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.