이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

A Long Time Ago

설명

A Long Time Ago is a WordPress plugin that replaces the default post time (for example: “Posted on 01/01/2011 at 11:11”) with “Posted x time ago” (examples: “Just now”, “2 hours ago”, “Yesterday”, “on Thursday”, “3 weeks ago”, “1 year ago”).

Enjoy!

Features Include:

  • Translation-ready. Includes English, Polish and Spanish.
  • [time_ago] shortcode allowing to place the time within posts and plugins.
  • ISO-formatted <time> HTML element
  • special cases: “just now” and “yesterday”

Bonus:

  • Function improving display of weekdays when using Polish language

설치

  1. Upload long-time-ago folder to the /wp-content/plugins/ directory or go to your WordPress Admin Panel -> Plugins -> Add New -> Upload (wp-admin/plugin-install.php?tab=upload)
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use time_ago() to place the posted on date in your templates or get_time_ago() to retrieve it. You can also use the [time_ago] shortcode.

FAQ

How do I retrieve/display the formatted date?
  • To echo the date within the theme use <?php time_ago() ?>.
  • To retrieve the date to a variable use <?php get_time_ago() ?>.
  • To display it within content or in visual editors use the [time_ago] shortcode.
How do I replace the *posted on* date format in my theme?

Various themes use different methods to display the “posted on” date.

For themes based on _s such as twentyfourteen you can replace all instances of twentyfourteen_posted_on() (names vary from theme to theme but chances are it will be called themename_posted_on()) appearing across the theme with time_ago().

You will most likely find the function in the following template files: content.php, content-single.php etc.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“A Long Time Ago”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “A Long Time Ago”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

0.1

  • Initial release. Includes English, Polish and Spanish translations.