Title: Random Post Link
Author: scribu
Published: <strong>4 Novembro, 2009</strong>
Last modified: 13 Setembro, 2012

---

Procurar plugins

Este plugin **não foi testado com as 3 últimas grandes versões do WordPress**. Pode
já não ser suportado e pode ter problemas de compatibilidade quando usado com versões
mais recentes do WordPress.

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

# Random Post Link

 Por [scribu](https://profiles.wordpress.org/scribu/)

[Descarregar](https://downloads.wordpress.org/plugin/random-post-link.zip)

 * [Detalhes](https://pt.wordpress.org/plugins/random-post-link/#description)
 * [Avaliações](https://pt.wordpress.org/plugins/random-post-link/#reviews)
 * [Desenvolvimento](https://pt.wordpress.org/plugins/random-post-link/#developers)

 [Suporte](https://wordpress.org/support/plugin/random-post-link/)

## Descrição

Unlike the [Random Redirect](https://wordpress.org/extend/plugins/random-redirect/)
plugin, this plugin makes sure that a user will not see the same post twice.

It does this by storing a cookie containing a list of single posts that the user
has seen. It then checks that list before redirecting.

#### Usage

Just put this line anywhere in your theme where you want the link to appear.

    ```
    <?php random_post_link(); ?>
    ```

You can specify the text you want on the link like so:

    ```
    <?php random_post_link('Feeling lucky'); ?>
    ```

Links: [Plugin News](http://scribu.net/wordpress/random-post-link) | [Author’s Site](http://scribu.net)

## Perguntas frequentes

  “Parse error: syntax error, unexpected T_CLASS…” Help!

Make sure your host is running PHP 5. Add this line to wp-config.php to check:

    ```
    var_dump(PHP_VERSION);
    ```

  What happens when there are no more posts?

If a user has seen all the available posts, the plugin will clear the list and redirect
to a random post.

## Avaliações

Este plugin não tem avaliações.

## Contribuidores e programadores

“Random Post Link” é software de código aberto. As seguintes pessoas contribuíram
para este plugin:

Contribuidores

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

[Traduza o “Random Post Link” para o seu idioma.](https://translate.wordpress.org/projects/wp-plugins/random-post-link)

### Interessado no desenvolvimento?

[Consulte o código](https://plugins.trac.wordpress.org/browser/random-post-link/),
consulte o [repositório SVN](https://plugins.svn.wordpress.org/random-post-link/),
ou subscreva o [registo de alterações](https://plugins.trac.wordpress.org/log/random-post-link/)
por [RSS](https://plugins.trac.wordpress.org/log/random-post-link/?limit=100&mode=stop_on_copy&format=rss).

## Registo de alterações

#### 1.0.1

 * handle case when a user has seen all posts

#### 1.0

 * initial release
 * [more info](http://scribu.net/wordpress/random-post-link/rpl-1-0.html)

## Metadados

 *  Versão **1.0.1**
 *  Última actualização **Há 14 anos**
 *  Instalações activas **60+**
 *  Versão do WordPress ** 2.8 ou superior **
 *  Testado até **3.0.5**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/random-post-link/)
 * Etiquetas
 * [button](https://pt.wordpress.org/plugins/tags/button/)[redirect](https://pt.wordpress.org/plugins/tags/redirect/)
 *  [Visualização avançada](https://pt.wordpress.org/plugins/random-post-link/advanced/)

## Classificações

 2 out of 5 stars.

 *  [  0 5-star reviews     ](https://wordpress.org/support/plugin/random-post-link/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/random-post-link/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/random-post-link/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/random-post-link/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/random-post-link/reviews/?filter=1)

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

[See all reviews](https://wordpress.org/support/plugin/random-post-link/reviews/)

## Contribuidores

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

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/random-post-link/)