This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Snippets

Description

Do you need a placeholder for a fixed text, like the name of the current band at number one, your affiliate tracking codes, or just the name of your favourite fruit fly?

Snippets allows you to create fixed areas within your theme for this text to be displayed, and can easily be updated through your WordPress admin in the appearance menu. The snippet content can also be used in your posts and pages with a simple tag.

For theme developers we have included a functions.php file that allows you to create hardcoded snippet areas in your themes that your users can update with their own information.

If you find any bugs then please tell us, if we are not told then they will not be fixed.

New features for version 0.9.2

  • Select input types for your snippet fields, such as text, textarea or checkbox.

Bug fixes for 0.9.4

  • Slashes stripped from values.

Bug fixes for 0.9.3

  • Invalid argument error if no snippets have been setup.

Bug fixes for 0.9.2

  • Blank field values not getting saved.

Installation

  1. Upload the snippets directory to your /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Navigate to new Snippets Setup menu item under the Settings menu.
  4. Add some new fields, and select the input type.
  5. Navigate to the Snippets menu under the Appearance menu.
  6. Add some values to your fields.
  7. Add the following function call to your theme: where field name is the exact name of the field you want to reference.
  8. Alternatively you can reference the snippet in your content with the follow: [snippets:field name] where field name is the exact name of the field you want to reference.
  9. The functions.php file can be copied to your own theme development to allow you to distribute snippet enabled areas within your themes, please read the comments in the source code of this file for more information on how to use it.

Contributors & Developers

“Snippets” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Snippets” into your language.

Interested in development?

Browse the code or subscribe to the development log by RSS.