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

Adjacent Archive Links

설명

After activating the plugin, you will have two new template tags at your disposal:

<?php previous_archive_link( 'format', 'link' ); ?>
<?php next_archive_link( 'format', 'link' ); ?>

They adapt their output depending on whether the date archive is a day, a month,
or a year, and they will only output a link for an adjacent time period in which you
have published posts. Both tags take two string parameters, format and link.

The format parameter defines what comes before and after the link. In it, %link
will be replaced with whatever is declared in the link parameter below. previous_archive_link
defaults to “&laquo; %link” and next_archive_link defaults to “%link &raquo;“.

The link parameter defines the link text. Both tags default to “%date“, the
adjacent archive page’s localized date.

If you’re interested in contributing to the code behind this plugin, it’s also hosted on GitHub:
https://github.com/justincwatt/wp-adjacent-archive-links

스크린샷

  • This is an example of how it looks on a date archive page customized to only show post titles in chronological order.

설치

  1. Extract the zip file, drop the contents in your wp-content/plugins/ directory, and then activate from the Plugins page.
  2. Edit your theme file (e.g. archive.php) and add the template tags <?php previous_archive_link(); ?> and <?php next_archive_link(); ?>

FAQ

How do I make my date archives show all posts for that time period in chronological order, rather than just 10 at a time?

Just add query_posts($query_string . '&showposts=1000&order=asc'); to the archive.php template right under the header call.

후기

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

기여자 & 개발자

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

기여자

자국어로 “Adjacent Archive Links”(을)를 번역하세요.

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

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

변경이력

3.0

  • Fixed issue where date strings were appearing non-localized (in en_US only)
  • Added Spanish localization (Hat tip: Andrew Kurtis of WebHostingHub)

2.0

  • Fixed use of wpdb->prepare for WordPress v3.5 (Hat tip: Jonathan Patt)
  • Improved output of custom previous/next archive hrefs (Hat tip: Trevor Morris)
  • Added the ability to apply filters to the output of both functions (Hat tip: Trevor Morris)

1.0

  • Initial version