Title: wpbackbutton
Author: mdix
Published: <strong>7 de març de 2012</strong>
Last modified: 7 de març de 2012

---

Cerca extensions

Aquesta extensió **no s’ha provat en les darreres 3 versions majors del WordPress**.
Segurament no està mantinguda o suportada, i pot tenir problemes de compatibilitat
quan s’usa en versions recents del WordPress.

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

# wpbackbutton

 Per [mdix](https://profiles.wordpress.org/mdix/)

[Baixa](https://downloads.wordpress.org/plugin/wpbackbutton.0.2.zip)

 * [Detalls](https://ca.wordpress.org/plugins/wpbackbutton/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/wpbackbutton/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/wpbackbutton/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/wpbackbutton/#developers)

 [Suport](https://wordpress.org/support/plugin/wpbackbutton/)

## Descripció

wpbackbutton adds a «Back» button to your WordPress blog which behaves like the 
javascript history.back() method. In contrast to history.back() it, of course, doesn’t
need Javascript & makes it possible to have a working ‘Back’ button even if the 
user comes to your blog via direct link (the «Back» button then redirects to the
frontpage).

## Instal·lació

Install & activate plugin via wordpress backend.
 Add `<?php echo do_shortcode('[
renderBackButton]'); ?>` to your template (where you want to see the «Back» button).

## PMF

  I can’t see the Back button on my Frontpage?

The «Back» button is only displayed if there’s a page to navigate back. Because 
there’s no page to navigate back to on the frontpage, you can’t see the button there,
even if you included it.

  How exactly does wpbackbutton work?

When a user enters a blog, wpbackbutton sets a cookie with the current URL and (
if the current URL is not the frontpage of your blog) the frontpage URL. If the 
user followed a direct link he’ll get redirected to the frontpage when pressing ‘
Back’, because there’s no history for that user. When starting with the frontpage
and navigating trough the blog, wpbackbutton saves the navigation history. When 
the «Back» button is clicked, the element, that has been viewed just before the 
current element, is loaded. This happens until the user is on the frontpage. Note:
It’s NOT neccessary to use the «Back» button in order to have a clean history. If
the user navigates to page A, then to page B and after that back to page A (with
a link, instead of pressing «Back») the history acts as if the user pressed the «
Back» button.

Some navigation cases (different chars are different pages, where A is frontpage):

A -> B -> C -> D would reverse navigate C -> B -> A A -> B -> C -> D -> C would 
reverse navigate B -> A A -> B -> C -> D -> E -> C would reverse navigate E -> D-
> C -> B -> A A -> B -> C -> D -> A would clear the history (mainpage has no back
button)

  Where should I add the Back button?

I suppose that it’s no good idea to add the button into a loop, because you’d have
it below every post. Instead you should add it directly after / before the loop,
so it’s displayed once or twice (above and below the content). This typically takes
place in the single.php / page.php / category.php / … files of your template (wherever
a loop gets executed).

## Ressenyes

No hi ha ressenyes per a aquesta extensió.

## Col·laboradors i desenvolupadors

«wpbackbutton» és programari de codi obert. La següent gent ha col·laborat en aquesta
extensió.

Col·laboradors

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

[Traduïu «wpbackbutton» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/wpbackbutton)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/wpbackbutton/), baixeu-
vos el [repositori SVN](https://plugins.svn.wordpress.org/wpbackbutton/), o subscriviu-
vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/wpbackbutton/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/wpbackbutton/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

#### 0.2

first working, but untested version

#### 0.1

Initial creation.

## Meta

 *  Versió **0.2**
 *  Darrera actualització **fa 14 anys**
 *  Instal·lacions actives **10+**
 *  Versió del WordPress ** 3.3.1 o posterior **
 *  Provada fins a **3.3.2**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/wpbackbutton/)
 * Etiqueta
 * [navigation](https://ca.wordpress.org/plugins/tags/navigation/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/wpbackbutton/advanced/)

## Valoracions

Encara no s'ha enviat cap ressenya.

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

[Visualitzeu totes les ressenyes](https://wordpress.org/support/plugin/wpbackbutton/reviews/)

## Col·laboradors

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

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/wpbackbutton/)

## Feu una donació

Voleu ajudar a què l’extensió millori?

 [ Feu una donació a aquesta extensió ](http://no-donate-link)