Linux 软件免费装
Banner图

Post Type Pagination

开发者 Wordpress Post Type Pagination
更新时间 2019年7月10日 13:59
WordPress版本: 5.2.2
版权: GPLv2 or later
版权网址: 版权信息

标签

seo navigation usability rtl Pagination Paginate Post Type Pagination post-type-pagination Post Pagination

下载

详情介绍:

Latest News Wordpress Post Type Pagination is a simple and flexible pagination plugin which provides users with better navigation on your WordPress site. In addition to increasing the user experience for your visitors, it has also been widely reported that pagination increases the SEO of your site by providing more links to your content. You can add custom CSS for your pagination links with the Custom CSS tab in post-type-pagination Settings.

安装:

Install and Activate
  1. Unzip the downloaded post-type-pagination zip file
  2. Upload the post-type-pagination folder and its contents into the wp-content/plugins/ directory of your WordPress installation
  3. Activate post-type-pagination from Plugins page
Implement For posts pagination: For the Twenty Seventeen theme, in index.php, replace: the_posts_pagination( array( 'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '' . ( 'Previous page', 'twentyseventeen' ) . '', 'next_text' => '' . ( 'Next page', 'twentyseventeen' ) . '' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ), 'before_page_number' => '' . __( 'Page', 'twentyseventeen' ) . ' ', ) ); With: if(function_exists('wp_paginate')): wp_paginate(); else : the_posts_pagination( array( 'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '' . ( 'Previous page', 'twentyseventeen' ) . '', 'next_text' => '' . ( 'Next page', 'twentyseventeen' ) . '' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ), 'before_page_number' => '' . __( 'Page', 'twentyseventeen' ) . ' ', ) ); endif; For the Twenty Sixteen theme, in index.php, replace: the_posts_pagination( array( 'prev_text' => ( 'Previous page', 'twentysixteen' ), 'next_text' => ( 'Next page', 'twentysixteen' ), 'before_page_number' => '' . __( 'Page', 'twentysixteen' ) . ' ', ) ); With: if(function_exists('wp_paginate')): wp_paginate(); else : the_posts_pagination( array( 'prev_text' => ( 'Previous page', 'twentysixteen' ), 'next_text' => ( 'Next page', 'twentysixteen' ), 'before_page_number' => '' . __( 'Page', 'twentysixteen' ) . ' ', ) ); endif; For the Twenty Fifteen theme, in index.php, replace: the_posts_pagination( array( 'prev_text' => ( 'Previous page', 'twentyfifteen' ), 'next_text' => ( 'Next page', 'twentyfifteen' ), 'before_page_number' => '' . __( 'Page', 'twentyfifteen' ) . ' ', ) ); With: if(function_exists('wp_paginate')): wp_paginate(); else : the_posts_pagination( array( 'prev_text' => ( 'Previous page', 'twentyfifteen' ), 'next_text' => ( 'Next page', 'twentyfifteen' ), 'before_page_number' => '' . __( 'Page', 'twentyfifteen' ) . ' ', ) ); endif; For comments pagination:
  1. Open the theme file(s) where you'd like comments pagination to be used. Usually this is the comments.php file.
  2. Replace your existing previous_comments_link() and next_comments_link() code block with the following:
Configure
  1. Configure the post-type-pagination settings, if necessary, from the post-type-pagination option in the Settings menu
  2. The styles can be changed with the following methods:
  3. Add a post-type-pagination.css file in your theme's directory and place your custom CSS there
  4. Add your custom CSS to your theme's styles.css
  5. Modify the post-type-pagination.css file in the post-type-pagination plugin directory
Note: The first two options will ensure that post-type-pagination updates will not overwrite your custom styles. Upgrading To 1.1.1+:

更新日志:

1.0.0