We'll create fresh WordPress site with insert installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Use the [insert]
shortcode inside posts or anywhere else that processes shortcodes.
[insert]
shortcode attributesWP_Query
via get_posts()
locate_template()
All attributes are optional and can be used in combination to yield powerful abilities.
Possibilities with [insert]
are endless. Practical uses include:
`
[insert template=”branding.php”]
`
`
[insert action=”dostuff”]
`
`
[insert data=”field=slug&value=example&tax=category” action=”dostuff”]
`
The action receives data as an array.
`
add_action(‘dostuff’, ‘print_r’);
`
`
[insert query=”name=about&post_type=page” template=”entry.php”]
`
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’);
`