Title: Get Image from Post
Author: klickonit
Published: <strong>7 Junho, 2009</strong>
Last modified: 13 Julho, 2017

---

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/get-image-from-post.svg)

# Get Image from Post

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

[Descarregar](https://downloads.wordpress.org/plugin/get-image-from-post.zip)

 * [Detalhes](https://pt.wordpress.org/plugins/get-image-from-post/#description)
 * [Avaliações](https://pt.wordpress.org/plugins/get-image-from-post/#reviews)
 *  [Instalação](https://pt.wordpress.org/plugins/get-image-from-post/#installation)
 * [Desenvolvimento](https://pt.wordpress.org/plugins/get-image-from-post/#developers)

 [Suporte](https://wordpress.org/support/plugin/get-image-from-post/)

## Descrição

** this plugin is no longer being update. Please feel free to adopt me! **

This is a simple plugin which allows users to return an image from the related post.

## Instalação

To install the plugin, please upload the folder to your plugins folder and active
the plugin.

## Perguntas frequentes

  Installation Instructions

To install the plugin, please upload the folder to your plugins folder and active
the plugin.

  How do I display the results?

Insert the following code into your WordPress theme files:

  General results

Without passing any parameters, the plugin will return ten results or fewer depending
on how many posts you have.

horshipsrectors_get_image_from_post();

  Altering the before and after values

By default the plugin wraps your code in list item (<li>) tags but you can specify
how to format the results using the following code:

horshipsrectors_get_image_from_post(‘before=<p>&after=</p>’);

  Adding a Link

If you’d like to link to the post (remember it’s not live yet) you can do so by 
calling:

horshipsrectors_get_image_from_post(‘link=true’);

  Which image?

You can specify which image is returned using the code:

horshipsrectors_get_image_from_post(‘image=2’);

  Strip Attributes

If you would like to strip the attributes such as width and height from the returned
value:

horshipsrectors_get_image_from_post(‘strip=true’);

  Echo vs. Return

Finally, if you’d like to copy the results into a variable you can return the results
as follows:

horshipsrectors_get_image_from_post(‘show=false’);

## Avaliações

Este plugin não tem avaliações.

## Contribuidores e programadores

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

Contribuidores

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

[Traduza o “Get Image from Post” para o seu idioma.](https://translate.wordpress.org/projects/wp-plugins/get-image-from-post)

### Interessado no desenvolvimento?

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

## Registo de alterações

#### 2.0.0

 * renamed function to be more compatible.
 * tested and optimized in WordPress 3.2
 * added test to determine in images existed

#### 1.0.0

 * official release
 * added strip attribute

#### 1.1.0

 * minor fixes for wordpress new admin

## Adoptar este plugin

 Este plugin está à procura de novos programadores activos. Está interessado em 
assumir essa responsabilidade?

 [Ler mais](https://developer.wordpress.org/plugins/wordpress-org/take-over-an-existing-plugin/)

## Metadados

 *  Versão **2017.08.13**
 *  Última actualização **Há 9 anos**
 *  Instalações activas **10+**
 *  Versão do WordPress ** 4.0.0 ou superior **
 *  Testado até **4.8.0**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/get-image-from-post/)
 * Etiqueta
 * [adopt-me](https://pt.wordpress.org/plugins/tags/adopt-me/)
 *  [Visualização avançada](https://pt.wordpress.org/plugins/get-image-from-post/advanced/)

## Classificações

Ainda não foram submetidas avaliações.

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

[See all reviews](https://wordpress.org/support/plugin/get-image-from-post/reviews/)

## Contribuidores

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

## Suporte

Tem algo a dizer? Precisa de ajuda?

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