After installing this plugin, create Snippet.
Once you have Snippet and Slug, you can include your Snippet anywhere you like — other Posts Pages Widgets ..
Using Snippet that you've created inside PHP template file...
If you would like to give other WordPress Roles Capabilities required, please use plugin like Enhanced Capability Manager..
Add Capabilities to Roles that should be allowed to manage Snippets. $caps = array.
Applying Raw HTML to Post Page that includes Snippet via, will NOT apply Raw HTML to Snippet content itself.
This provides great of flexibility, because it allows you to have Raw HTML Post or Page, but have Snippets that were designed in WP Visual Editor ...
I recommend this KB article s2Member® Simple Conditionals. s2Member's Simple Shortcode Conditionals can be used inside Snippet itself, or by wrapping your Snippet Shortcode when you put it into Post or Page.
Browse the code, check out SVN repository, or subscribe to the development log by RSS...
This works the same as normal shortcode except with Snippet Template shortcode, any additional attributes that you specify are used as replacement code values in Snippet content.
Read more