WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Post Snippets

Keep a snippet library of text, HTML or PHP code to be used in posts. Variables can be set for more flexibility. Inserts directly or as shortcodes.

Why do importing Snippets on a multi site install fail?

Upload of zip files must be allowed, enable this in Sites Network Admin -> Settings -> Upload Settings -> Upload file types.

How can I use the content in an enclosed shortcode?

If the shortcode is enclosed and contains content between the tags in a post. Example: [shortcode]Some text[/shortcode] the text within will be availble in a variable called content. So in your snippet use {content} to display it. Don't enter 'content' in the variable field, it's automatically assigned.

Where can I send bug reports?

Please visit the GitHub repository for Post Snippet and open an issue. Please create an issue that conforms with necolas's guidelines.

Where can I get support?

Please visit the Support Forum for questions, answers, support and feature requests.

How can I disable the PHP Code Execution feature?

´╗┐To disable the "PHP Code" execution feature in this plugin, add the following code your theme's functions.php or to wp-config.php:

define('POST_SNIPPETS_DISABLE_PHP', true);

This is useful if you are using this plugin for client sites, and don't want your clients to be able to use PHP code in a post snippet.

How can I contribute to the plugin?

If you want to contribute improved code or new features for the plugin. Please open a pull request at the Post Snippets GitHub repository. Please open a pull request that conforms with necolas's guidelines. Contributions are appreciated and encouraged.

Requires: 3.3 or higher
Compatible up to: 3.9
Last Updated: 2014-4-17
Downloads: 62,207

Ratings

4 stars
4.9 out of 5 stars

Support

2 of 8 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

3 people say it works.
0 people say it's broken.

100,3,3
100,1,1 100,1,1
100,1,1
0,1,0 100,2,2
0,1,0 100,3,3
0,1,0
100,3,3 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 83,6,5
67,3,2
50,2,1 100,1,1
100,2,2
100,1,1
75,4,3 100,1,1 100,1,1 100,2,2 100,3,3
100,1,1 100,1,1 100,1,1
100,1,1 100,2,2 100,1,1 100,1,1 100,2,2 100,1,1 100,1,1 100,4,4 100,2,2 100,2,2 100,2,2 100,7,7
100,4,4
100,1,1
100,1,1
100,1,1
100,1,1 100,1,1 83,6,5 100,1,1 100,1,1 100,1,1 100,1,1 100,2,2
100,4,4
0,2,0 100,1,1
100,1,1
100,1,1
50,2,1
100,3,3
100,1,1
100,1,1
100,3,3