Title: Logarithmic Pagination
Author: Jonas
Published: <strong>2013 年 4 月 21 日</strong>
Last modified: 2013 年 4 月 22 日

---

搜索插件

![](https://ps.w.org/wp-lopa/assets/banner-772x250.png?rev=701020)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/wp-lopa_627e72.svg)

# Logarithmic Pagination

 作者：[Jonas](https://profiles.wordpress.org/uargh/)

[下载](https://downloads.wordpress.org/plugin/wp-lopa.0.1.3.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-lopa/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-lopa/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-lopa/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-lopa/#developers)

 [支持](https://wordpress.org/support/plugin/wp-lopa/)

## 描述

This will give you an advanced pagination to distribute your link-juice more evenly
across your paginated paged. It also provides a better choice of navigation to the
user to explore and find your content.

You can turn the pagination on/off separately for:

 * homepage
 * search results
 * category archives
 * date archives
 * tag archives
 * author archives

Or implement it directly into your theme using `<?php the_wp_lopa('pages_below');?
>`.

You can also choose if you want it to be displayed before and/or after the loop 
content.

The plugin is currently available in English and German. If you want to help translate
it, just write me an email. Help is much appreciated!

For more information visit the [plugin website](http://www.k308.de/labs/logarithmic-pagination).

#### Credits

This plugin is based on the idea found in the following (German) article by Nikolas
Schmidt-Voigt: [Webseitenstruktur und Paginierung für SEO](http://www.kawumba.de/webseitenstruktur-und-paginierung-fuer-seo/)&
a
 [discussion](http://stackoverflow.com/questions/7835752/how-to-do-page-navigation-for-many-many-pages-logarithmic-page-navigation)
on stackoverflow.

## 屏幕截图

[⌊An example of the generated output⌉⌊An example of the generated output⌉[

An example of the generated output

[⌊This is the Settings page of wp-lopa⌉⌊This is the Settings page of wp-lopa⌉[

This is the Settings page of wp-lopa

## 安装

 1.  Unzip wp-lopa.zip.
 2.  Upload `wp-lopa` to the `/wp-content/plugins/` directory
 3.  Activate the plugin through the `Plugins` menu in WordPress
 4.  Change Settings on `Settings` -> `Log. Pagination` and/or implement template-tag
     respectively
 5.  Remove the original pagination code from the template files. Depending on your
     themes structure they can be located in files named `loop.php`, `index.php`, `
     archive.php`, `date.php`, `search.php`, `author.php` or others.
 6.  Add some CSS to make it all pretty. To make it easier here is some sample-code:
 7.  .assistive-text { display: none; } .paging-navigation ul { list-style: none; }
 8.  .paging-navigation li { float: left; }
 9.  .paging-navigation .current { }
 10. .paging-navigation .paginate_link { }
 11. .paging-navigation .prev { }
 12. .paging-navigation .next { }

Here is some sample HTML output:

    ```
    <nav role="navigation" id="pages_bottom" class="site-navigation paging-navigation">
        <h1 class="assistive-text">Post navigation</h1>
        <ul>
            <li>
                <a href="?paged=2" rel="prev" class="prev">
                    <span class="paginate_link">Previous</span>
                </a>
            </li>
            <li>
                <a href="/">
                    <span class="paginate_link">1</span>
                </a>
            </li>
            <li>
                <a rel="prev" href="?paged=2">
                    <span class="paginate_link">2</span>
                </a>
            </li>
            <li>
                <span class="current">3</span>
            </li>
            <li>
                <a rel="next" href="?paged=4">
                    <span class="paginate_link">4</span>
                </a>
            </li>
    [...]
            <li>
                <span class="seperator">..</span>
            </li>
            <li>
                <a href="?paged=19">
                    <span class="paginate_link">19</span>
                </a>
            </li>
            <li>
                <span class="seperator">...</span>
            </li>
            <li>
                <a href="?paged=35">
                    <span class="paginate_link">35</span>
                </a>
            </li>
    [...]
            <li>
                <a href="?paged=42">
                    <span class="paginate_link">42</span>
                </a>
            </li>
            <li>
                <a href="?paged=4" rel="next" class="next">
                    <span class="paginate_link">Next</span>
                </a>
            </li>
        </ul>
    </nav>
    ```

## 常见问题

  Does the plugin support the use of pretty permalinks?

Yes, it does. It uses internal WordPress functions to generate the links so all 
changes to your link structure within your WordPress site will be repsected.

  I have navigation showing up in the sidebar.

Until i find a better solution you will have to use the template-tag `<?php the_wp_lopa('
pages_below'); ?>` to call the pagination element. Make sure to uncheck the places
on the Settings page aswell.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Logarithmic Pagination」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Jonas ](https://profiles.wordpress.org/uargh/)

[帮助将「Logarithmic Pagination」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-lopa)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-lopa/)，查看[SVN仓库](https://plugins.svn.wordpress.org/wp-lopa/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/wp-lopa/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-lopa/)。

## 更新日志

#### 0.1.3

 * Fixed translations

#### 0.1.2

 * Added some default css so the pagination starts out looking half way decent.
 * Added the option to display pagination on author archives.

#### 0.1.1

 * Added template-tag `<?php the_wp_lopa('pages_below'); ?>` to use when having 
   confilcts with widgets

#### 0.1

 * Initial version

## 额外信息

 *  版本 **0.1.3**
 *  最后更新：**13 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **3.5.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-lopa/)
 * 标签
 * [archives](https://cn.wordpress.org/plugins/tags/archives/)[categories](https://cn.wordpress.org/plugins/tags/categories/)
   [navigation](https://cn.wordpress.org/plugins/tags/navigation/)[pagination](https://cn.wordpress.org/plugins/tags/pagination/)
   [search](https://cn.wordpress.org/plugins/tags/search/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-lopa/advanced/)

## 评级

 4 星（最高 5 星）。

 *  [  0 条 5 星评价     ](https://wordpress.org/support/plugin/wp-lopa/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/wp-lopa/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-lopa/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-lopa/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/wp-lopa/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-lopa/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-lopa/reviews/)

## 贡献者

 *   [ Jonas ](https://profiles.wordpress.org/uargh/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-lopa/)