Title: Better Adjacent Post Links
Author: unalignedcoder
Published: <strong>19. September 2007</strong>
Last modified: 9. September 2009

---

Plugins suchen

Dieses Plugin wurde **nicht mit den 3 neuesten Hauptversionen von WordPress getestet**.
Es wird möglicherweise nicht mehr gepflegt oder unterstützt und kann bei der Verwendung
mit neueren WordPress-Versionen zu Kompatibilitätsproblemen führen.

![](https://s.w.org/plugins/geopattern-icon/better-nearby-posts-links.svg)

# Better Adjacent Post Links

 Von [unalignedcoder](https://profiles.wordpress.org/unalignedcoder/)

[Herunterladen](https://downloads.wordpress.org/plugin/better-nearby-posts-links.1.1.zip)

 * [Details](https://de.wordpress.org/plugins/better-nearby-posts-links/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/better-nearby-posts-links/#reviews)
 *  [Installation](https://de.wordpress.org/plugins/better-nearby-posts-links/#installation)
 * [Entwicklung](https://de.wordpress.org/plugins/better-nearby-posts-links/#developers)

 [Support](https://wordpress.org/support/plugin/better-nearby-posts-links/)

## Beschreibung

If you are used to link the ‚previous‘ and ’next‘ posts on a wordpress blog using
their own title, you have probably noticed how more often than not too long titles
can cause broken lines, hence unpredictable results in terms of page layout.

The only workaround in wordpress so far was to replace the title of the posts with
generic phrases like ’next post‘, ‚previous post‘ and so on. With this plugin you
can use the title of the post itself, and trim it as needed.

Features:

 * limits the length of the previous and next post titles to the number of characters
   you want
 * where necessary, truncates the title to the last space, adding three dots
 * shows the entire title of the post in the tooltip (mysteriously wordpress never
   considers the tooltips of the links)
 * sets the string that conditionally will appear before the link title, only if
   the link title itself is present (previously in wordpress you either had to add
   a string outside of the ’next/previous post‘ tag, thus causing it to appear in
   the page even if the link was not present, or you had to add the string inside
   the link generated by wordpress, with ugly results: for example if the string
   was just a simple dividing character like ‚|‘)

## Installation

Extract, upload to the plugins folder of your wordpress install, activate.

How to use:

This plugin adds two specific functions to your wordpress install: `my_prev_post_link`
and `my_next_post_link`.
 These two functions are very similar to, and support the
same variables of the original wordpress tags they are meant to replace (please 
refer to the relative wordpress codex pages for their use), `previous_post_link`
and `next_post_link`. My replacement functions anyway come with two additional variables:`
$string_lenght` and `$pre_link`. Not that you really needed to know how they were
called.

The first variable indicates the maximum length for the title (default is 22 characters).
The second the string to be displayed before the link (only if the link itself is
present).

So, you’ll just have to replace `<?php next_post_link(); ?>` in your template with`
<?php my_next_post_link() ?>`, obviously indicating between the brackets the variables
you want to specify. Again, refer to the wordpress codex for usage of variables:
only keep in mind that my two additional variables, `$string_lenght` and `$pre_link`,
are the second last and last variable of the function.

## Rezensionen

Zu diesem Plugin liegen noch keine Rezensionen vor.

## Mitwirkende und Entwickler

„Better Adjacent Post Links“ ist Open-Source-Software. Folgende Menschen haben an
diesem Plugin mitgewirkt:

Mitwirkende

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

[Übersetze „Better Adjacent Post Links“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/better-nearby-posts-links)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/better-nearby-posts-links/),
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/better-nearby-posts-links/)
an oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/better-nearby-posts-links/)
per [RSS](https://plugins.trac.wordpress.org/log/better-nearby-posts-links/?limit=100&mode=stop_on_copy&format=rss).

## Änderungsprotokoll

#### 1.1

Fixed a bug that caused the next link not to be generated. Thanks to Rebecca and
Zak for poiting the bug out.

## Meta

 *  Version **1.1**
 *  Zuletzt aktualisiert **vor 17 Jahren**
 *  Aktive Installationen **70+**
 *  WordPress-Version ** 2.0.2 oder höher **
 *  Getestet bis **2.8.4**
 *  Sprache
 * [English (US)](https://wordpress.org/plugins/better-nearby-posts-links/)
 * Schlagwörter
 * [links](https://de.wordpress.org/plugins/tags/links/)[post](https://de.wordpress.org/plugins/tags/post/)
   [posts](https://de.wordpress.org/plugins/tags/posts/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/better-nearby-posts-links/advanced/)

## Bewertungen

Es wurden noch keine Rezensionen eingereicht.

[Deine Rezension](https://wordpress.org/support/plugin/better-nearby-posts-links/reviews/#new-post)

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/better-nearby-posts-links/reviews/)

## Mitwirkende

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

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

 [Support-Forum anzeigen](https://wordpress.org/support/plugin/better-nearby-posts-links/)