Title: insert
Author: ryanve
Published: <strong>30 студзеня, 2014</strong>
Last modified: 30 студзеня, 2014

---

Пошук плагінаў

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# insert

 Аўтар: [ryanve](https://profiles.wordpress.org/ryanve/)

[Спампаваць](https://downloads.wordpress.org/plugin/insert.zip)

 * [Падрабязнасці](https://bel.wordpress.org/plugins/insert/#description)
 * [Водгукі](https://bel.wordpress.org/plugins/insert/#reviews)
 *  [Ўсталёўка](https://bel.wordpress.org/plugins/insert/#installation)
 * [Распрацоўка](https://bel.wordpress.org/plugins/insert/#developers)

 [Падтрымка](https://wordpress.org/support/plugin/insert/)

## Апісанне

### 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)

## Ўсталёўка

Requires: PHP 5.3+

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

## Водгукі

На гэты плагін няма водгукаў.

## Удзельнікі і распрацоўшчыкі

“insert” is open source software. The following people have contributed to this 
plugin.

Удзельнікі

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

[Перакласці “insert” на вашу мову.](https://translate.wordpress.org/projects/wp-plugins/insert)

### Зацікаўлены ў распрацоўцы?

[Праглядзіце код](https://plugins.trac.wordpress.org/browser/insert/), праверце 
[SVN рэпазітарый](https://plugins.svn.wordpress.org/insert/), або падпішыцеся на
[журнал распрацоўкі](https://plugins.trac.wordpress.org/log/insert/) па [RSS](https://plugins.trac.wordpress.org/log/insert/?limit=100&mode=stop_on_copy&format=rss).

## Мета

 *  Версія **0.1.0**
 *  Апошняе абнаўленне **13 гадоў таму**
 *  Актыўных установак **10+**
 *  Версія WordPress ** 2.7.0 або вышэй **
 *  Правераны да версіі **3.8.0**
 *  Мова
 * [English (US)](https://wordpress.org/plugins/insert/)
 * Тэгі
 * [insert](https://bel.wordpress.org/plugins/tags/insert/)[shortcode](https://bel.wordpress.org/plugins/tags/shortcode/)
 *  [Пашыраны прагляд](https://bel.wordpress.org/plugins/insert/advanced/)

## Ацэнкі

Пакуль яшчэ няма водгукаў.

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

[Паглядзець усе водгукі](https://wordpress.org/support/plugin/insert/reviews/)

## Удзельнікі

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

## Падтрымка

Ёсць што сказаць? Патрэбна дапамога?

 [Перайсці да форуму падтрымкі](https://wordpress.org/support/plugin/insert/)

## Падтрымаць

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://gittip.com/ryanve)