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

Custom Pagination

설명

With the Custom Pagination plugin, a user may customize the look of a post’s next and previous links using the HTML editor. It is built by WebIT.ca (Dimitry Zolotaryov) and funded by DateDaily.com: an online dating and relationship blog.

The link is created by selecting the text label within a post’s body and clicking the link icon. In the Link URL field, the following values will produce a link to another page:

  • page:next links to the next page
  • page:prev or page:previous links to the previous page
  • page:first links to the first page of the post
  • page:last links to the last page of a post
  • page:n links to the nth page of a post (e.g. page:2 for the second page)

If link is directing to a page that does not exist — for instance page:next on the last page –, the link and the link text do not appear.

All links processed by Custom Pagination will have the added class name ‘page’. If you wish to style such links, in your CSS, add the line:

a.page { /* page style goes here */ }

For more information, visit the Custom Pagination plugin homepage.

스크린샷

  • Selecting text for a link to the next page
  • Adding the next page link text
  • The generated link

설치

  1. Copy or upload the custom-pagination directory into your /wp-content/plugins/ directory
  2. If you downloaded a zipped copy (i.e. custom-pagination.zip), use the ‘Plugins’ > ‘Add New’ section of WordPress to upload it
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

Done.

Actually, if you wish to use WordPress pagination when there is no Custom Pagination on a page, you may use the following PHP code:

// inside single.php
// displays the standard pagination when no custom pagination link is found
if ( ! cp_link_found() )
    wp_link_pages(array('next_or_number' => 'next', 'nextpagelink'=>'Next page »', 'previouspagelink'=>'« Previous page'));

FAQ

Will the pagination work with custom permalinks?

It should.

What is the cost of the plugin?

This plugin is provided free of charge thanks to the good people at Mate1 Inc and the site DateDaily.com. You may use the Custom Pagination plugin for any purpose provided you keep the comment section of the custompagination.php file.

How do I remove the default pagination

If you are seeing the default pagination in your posts, you probably have the following code in you content.php theme file. Remove it and the default pagination should disappear.

    wp_link_pages( array(
        'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>',
        'after'       => '</div>',
        'link_before' => '<span>',
        'link_after'  => '</span>',
        'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
        'separator'   => '<span class="screen-reader-text">, </span>',
    ) );

후기

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

기여자 & 개발자

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

기여자

자국어로 “Custom Pagination”(을)를 번역하세요.

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

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