Title: insert
Author: ryanve
Published: <strong>30. Januar 2014</strong>
Last modified: 30. Januar 2014

---

Plugins suchen

Dieses Plugin wurde **nicht mit den 3 neuesten Hauptversionen von WordPress getestet**.
Es wird möglicherweise nicht mehr gepflegt oder unterstützt und kann bei der Verwendung
mit neueren WordPress-Versionen zu Kompatibilitätsproblemen führen.

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

# insert

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

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

 * [Details](https://de.wordpress.org/plugins/insert/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/insert/#reviews)
 *  [Installation](https://de.wordpress.org/plugins/insert/#installation)
 * [Entwicklung](https://de.wordpress.org/plugins/insert/#developers)

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

## Beschreibung

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

## Installation

Requires: PHP 5.3+

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

## Rezensionen

Zu diesem Plugin liegen noch keine Rezensionen vor.

## Mitwirkende und Entwickler

„insert“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

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

[Übersetze „insert“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/insert)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/insert/), sieh
dir das [SVN-Repository](https://plugins.svn.wordpress.org/insert/) an oder abonniere
das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/insert/) per 
[RSS](https://plugins.trac.wordpress.org/log/insert/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **0.1.0**
 *  Zuletzt aktualisiert **vor 13 Jahren**
 *  Aktive Installationen **10+**
 *  WordPress-Version ** 2.7.0 oder höher **
 *  Getestet bis **3.8.0**
 *  Sprache
 * [English (US)](https://wordpress.org/plugins/insert/)
 * Schlagwörter
 * [insert](https://de.wordpress.org/plugins/tags/insert/)[shortcode](https://de.wordpress.org/plugins/tags/shortcode/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/insert/advanced/)

## Bewertungen

Es wurden noch keine Rezensionen eingereicht.

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

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/insert/reviews/)

## Mitwirkende

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

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

 [Support-Forum anzeigen](https://wordpress.org/support/plugin/insert/)

## Spenden

Möchtest du die Weiterentwicklung dieses Plugins unterstützen?

 [ Für dieses Plugin spenden ](http://gittip.com/ryanve)