Create Snippets! This plugin adds a new Post Type. Snippets can be included in Posts/Pages/Widgets via shortcodes.
[snippet_template slug="" /]. This works the same as a normal
[snippet slug="" /]shortcode; except with a Snippet Template shortcode, any additional attributes that you specify are used as replacement code values in the Snippet content. For instance, you might have a Snippet with content that includes this replacement code:
%%type%%. Now create your Snippet shortcode like this to fill that value dynamically:
[snippet_template slug="my-slug" type="product" /]; where
%%type%%is now replaced by
Requires: 3.3 or higher
Compatible up to: 4.2-alpha
Last Updated: 2 years ago
Active Installs: 1,000+
Got something to say? Need help?