Title: insert
Author: ryanve
Published: <strong>30 de Janeiro, 2014</strong>
Last modified: 30 de Janeiro, 2014

---

Pesquisar plugins

Este plugin **não foi testado com as 3 atualizações principais mais recentes do 
WordPress**. Pode ser que não tenha mais manutenção ou suporte e talvez tenha problemas
de compatibilidade quando usado com versões mais recentes do WordPress.

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

# insert

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

[Baixar](https://downloads.wordpress.org/plugin/insert.zip)

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

 [Suporte](https://wordpress.org/support/plugin/insert/)

## Descrição

### Usage

Use the `[insert]` shortcode inside posts or anywhere else that processes [shortcodes](https://codex.wordpress.org/Shortcode_API).

#### `[insert]` shortcode attributes

 * query – sets up a new [`WP_Query`](https://codex.wordpress.org/Class_Reference/WP_Query)
   via [`get_posts()`](https://codex.wordpress.org/Template_Tags/get_posts)
 * data – data to pass to actions
 * action – action to run, runs for each post if applicable
 * filter – filter to run, runs for each post if applicable
 * template – template to load via [`locate_template()`](https://codex.wordpress.org/Function_Reference/locate_template)

All attributes are optional and can be used in combination to yield powerful abilities.

### Abilities

Possibilities with `[insert]` are endless. Practical uses include:

 * Insert posts into posts
 * Insert hooks into posts
 * Insert posts into widgets
 * Run action hooks via widgets
 * Load templates via widgets

### Examples

#### Insert a template

    ```
    `
    ```

[insert template=”branding.php”]
 `

#### Insert an action

    ```
    `
    ```

[insert action=”dostuff”]
 `

#### Pass data to an action

    ```
    `
    ```

[insert data=”field=slug&value=example&tax=category” action=”dostuff”]
 `

The action receives data as an array.

    ```
    `
    ```

add_action(‘dostuff’, ‘print_r’);
 `

#### Insert a page via template

    ```
    `
    ```

[insert query=”name=about&post_type=page” template=”entry.php”]
 `

#### Insert a page via action

This sets up the query and triggers the action.

    ```
    `
    ```

[insert query=”name=about&post_type=page” action=”dostuff”]
 `

WP template tags are available inside the action.

    ```
    `
    ```

add_action(‘dostuff’, ‘the_title’);
 `

### Github

 * [github.com/ryanve/insert](https://github.com/ryanve/insert)

## Instalação

Requires: PHP 5.3+

 1. Upload to the `/wp-content/plugins/` directory
 2. Activate through the Plugins menu in WordPress

## Avaliações

There are no reviews for this plugin.

## Contribuidores e desenvolvedores

“insert” é um software com código aberto. As seguintes pessoas contribuíram para
este plugin.

Contribuidores

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

[Traduzir “insert” para o seu idioma.](https://translate.wordpress.org/projects/wp-plugins/insert)

### Interessado no desenvolvimento?

[Navegue pelo código](https://plugins.trac.wordpress.org/browser/insert/), dê uma
olhada no [repositório SVN](https://plugins.svn.wordpress.org/insert/) ou assine
o [registro de desenvolvimento](https://plugins.trac.wordpress.org/log/insert/) 
via [RSS](https://plugins.trac.wordpress.org/log/insert/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **0.1.0**
 *  Last updated **13 anos atrás**
 *  Active installations **10+**
 *  WordPress version ** 2.7.0 ou maior **
 *  Tested up to **3.8.0**
 *  Language
 * [English (US)](https://wordpress.org/plugins/insert/)
 * Tags
 * [insert](https://pt-ao.wordpress.org/plugins/tags/insert/)[shortcode](https://pt-ao.wordpress.org/plugins/tags/shortcode/)
 *  [Panorama avançado](https://pt-ao.wordpress.org/plugins/insert/advanced/)

## Classificações

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/insert/reviews/)

## Contribuidores

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

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/insert/)

## Doar

Gostaria de apoiar o desenvolvimento deste plugin?

 [ Faça uma doação a este plugin ](http://gittip.com/ryanve)