How to make global snippet properties overridable in each post

In version 2.2.0 of the Rich Snippet WordPress Plugin there is a cool new feature that allows you to overwrite global parameters directly in your posts. Here is how it works:

A) Create a global snippet

  1. At first you need a global snippet. In this example we create a recipe snippet. Let’s make some cookies!
  2. Head over to your WordPress dashboard and click “snip” > “Global Snippets” from the menu.
  3. Then click the “Add new global snippet” button from the top and hit the “Recipe” button to load some recommended properties:
Recipe snippet with some properties and the overridable option on the right
Can you see the new checkbox that allows you to override the properties?
  1. Let’s say we want to make the prepTime property overridable. For this we check the checkbox right next to it.
  2. We also choose “Textfield” from the “Please select:” dropdown:
Recipe snippet with overridable prepTime property
Select the textfield for the prepTime property
  1. That’s it for now. Save your settings.

B) Override property values

  1. Now let’s create a new blog post. Head over to “Posts” and hit the “Add new” button or just edit an exiting one.
  2. I created a blogpost called “Cookies”.
  3. Now hit the “Edit Global Snippets Values” or “Edit Global Snippets” (since version 2.4.0) button from the right metabox. Scroll down a little if you don’t see it.
The Global Snippets Values Button on the post edit screen
Hit this button to open up another window that allows you to overwrite global snippet values
  1. This will now bring up a new window. Click “Recipe” from the list to your left. This will load all properties that can be overwritten (that you have selected in step A) 4.).
Global overwrite window with loaded recipe properties
Select “Recipe” from the menu, then enter a value for the prepTime.
  1. Now enter value for the prepTime and save your settings.

That’s it pretty much.

Now you can carry on by make more properties overridable.

2 thoughts on “How to make global snippet properties overridable in each post