Title: Floating NextPrev
Author: Claudio Sanches
Published: <strong>2011 年 12 月 8 日</strong>
Last modified: 2020 年 8 月 10 日

---

搜索插件

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

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

# Floating NextPrev

 作者：[Claudio Sanches](https://profiles.wordpress.org/claudiosanches/)

[下载](https://downloads.wordpress.org/plugin/floating-nextprev.2.3.0.zip)

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

 [支持](https://wordpress.org/support/plugin/floating-nextprev/)

## 描述

The Floating NextPrev displays buttons for navigation between your blog posts.
 
The icons are displayed only within the pages of posts and can promote a better 
navigation for your visitors.

#### Contribute

You can contribute to the source code in our [GitHub](https://github.com/claudiosmweb/floating-nextprev)
page.

### License

## 屏幕截图

 * [[
 * Plugin in action.
 * [[
 * Plugin settings.

## 安装

 * Upload plugin files to your plugins folder, or install using WordPress built-
   in Add New Plugin installer;
 * Activate the plugin;
 * Navigate to Settings -> Floating NextPrev and select the design model.

## 常见问题

### What is the plugin license?

 * This plugin is released under a GPL license.

### Why the plugin is not working?

 * Probably due to incompatibility of jQuery. Check to see if this plugin modifying
   the jQuery version of your WordPress.

### How navigating only in posts in the same category?

Paste this code in `functions.php` file of your theme:

    ```
    add_filter( 'floating_nextprev_in_same_cat', '__return_true' );
    ```

### How to hide in some categories?

Use this example in `functions.php` file of your theme:

    ```
    function floating_nextprev_exclude_categories( $excluded_categories ) {
        $excluded_categories = '1,2,3'; // add your categories ids.

        return excluded_categories;
    }

    add_filter( 'floating_nextprev_excluded_categories', 'floating_nextprev_exclude_categories' );
    ```

### How can I control the display?

You can control the display using the `floating_nextprev_display` filter.
 Example
how to display only in news category:

    ```
    function floating_nextprev_only_in_news( $display ) {
        return in_category( 'news' );
    }

    add_filter( 'floating_nextprev_display', 'floating_nextprev_only_in_news' );
    ```

### How to change the “Previous” and “Next” titles?

Use the `floating_nextprev_prev_title` and `floating_nextprev_next_title` filters.

Example:

    ```
    function floating_nextprev_prev_title( $title ) {
        return __( '&larr;', 'textdomain' );
    }

    add_filter( 'floating_nextprev_prev_title', 'floating_nextprev_prev_title' );

    function floating_nextprev_next_title( $title ) {
        return __( '&rarr;', 'textdomain' );
    }

    add_filter( 'floating_nextprev_next_title', 'floating_nextprev_next_title' );
    ```

## 评价

![](https://secure.gravatar.com/avatar/df95578ec1c91d9f665bb07bf800cfc04f1cad5033d90a82fae0ba92b9141ce2?
s=60&d=retro&r=g)

### 󠀁[Excelente!](https://wordpress.org/support/topic/excelente-4111/)󠁿

 [Micro Center – Loja de informática](https://profiles.wordpress.org/microcenter/)
2025 年 2 月 4 日

O plugin funcionou corretamente e é bonito!

![](https://secure.gravatar.com/avatar/faba21045d80651c5c489c0983d95787d8794e6628f02f4c9298745f176de5d5?
s=60&d=retro&r=g)

### 󠀁[FIXED – Really Good but doesn't detect first and last post](https://wordpress.org/support/topic/really-good-but-doesnt-detect-first-and-last-post/)󠁿

 [violet43](https://profiles.wordpress.org/violet43/) 2016 年 9 月 3 日 4 回复

I really like this plugin, it’s really easy and easy to customise even more if you
know css (I decreased the size of the panels.) However, when I am at my last post,
the tab for Next Post keeps showing this current post, because it’s the last one.
Same with the first post when looking at Previous Post. Maybe add an option for 
looping, or just add a condition and don’t display the tab if it’s the first/last
post? 🙂 Thanks!

![](https://secure.gravatar.com/avatar/304a029c841eedc523b689ee1da3856346550af8692e4750397c89a3f55c886a?
s=60&d=retro&r=g)

### 󠀁[I love this plugin](https://wordpress.org/support/topic/i-love-this-plugin-185/)󠁿

 [Omigy](https://profiles.wordpress.org/bizzthat/) 2016 年 9 月 3 日

This plugin is something I was looking for a long time ago!

![](https://secure.gravatar.com/avatar/c738a24e869771552aa7da37b64511b52486eb5f5a33110a57c56789e4a744df?
s=60&d=retro&r=g)

### 󠀁[Samll and very useful](https://wordpress.org/support/topic/samll-and-very-useful/)󠁿

 [WiKaBot](https://profiles.wordpress.org/wikabot/) 2016 年 9 月 3 日

… eyerything is said in the header … thanks.

![](https://secure.gravatar.com/avatar/918add4ba2a54e31655f678f29458a1c7efce320520f5f2ae73435d90c9b8021?
s=60&d=retro&r=g)

### 󠀁[Looks great!](https://wordpress.org/support/topic/looks-great-60/)󠁿

 [Zoinks! Graphics](https://profiles.wordpress.org/zoinks/) 2016 年 9 月 3 日 1 
回复

Still works on latest WP, two years after last update. One star less than perfect
due to minor quibble about last post activity. Other than that, great!

 [ 阅读所有8条评价 ](https://wordpress.org/support/plugin/floating-nextprev/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Claudio Sanches ](https://profiles.wordpress.org/claudiosanches/)

「Floating NextPrev」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/floating-nextprev/contributors)
为本插件所做的贡献。

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

### 对开发感兴趣吗?

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

## 更新日志

#### 2.3.0 – 2016/08/10

 * Improved how check for the first and last pages in order to avoid wrong arrow
   buttons.

## 额外信息

 *  版本 **2.3.0**
 *  最后更新：**6 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.8 或更高版本 **
 *  已测试的最高版本为 **5.5.18**
 *  语言
 * [English (US)](https://wordpress.org/plugins/floating-nextprev/) 、 [Portuguese (Brazil)](https://br.wordpress.org/plugins/floating-nextprev/)
   和 [Romanian](https://ro.wordpress.org/plugins/floating-nextprev/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/floating-nextprev)
 * 标签
 * [floating](https://cn.wordpress.org/plugins/tags/floating/)[jquery](https://cn.wordpress.org/plugins/tags/jquery/)
   [navigation](https://cn.wordpress.org/plugins/tags/navigation/)
 *  [高级视图](https://cn.wordpress.org/plugins/floating-nextprev/advanced/)

## 评级

 4.9 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Claudio Sanches ](https://profiles.wordpress.org/claudiosanches/)

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://claudiosmweb.com/doacoes/)