Global Snippets are a beautiful thing. They allow you to add one rich snippet to many posts at once. But how does it work exactly?
How to create a global Rich Snippet
- When you activate the plugin you will see a new menu item under “snip” in your WordPress dashboard. It’s named “Global Snippets”.
- Just open it up and add a new Global Snippet.
- You will then be able to create a Rich Snipppets.
- When you’ve finished creating the snippet, you can choose where it should appear.
- For this scroll down to the “Position” metabox.
- There you can create a set of rules to determine which pages will use these schema.org syntax you’ve just created.
Are there any examples?
Yes there are!
If you have a fresh install:
- Go to “snip” in your WordPress dashboard and choose “Global Snippets”.
- A new admin notice will appear on top of the screen. It says “Hey Dude! The plugin can install some predefined global snippets for you!”.
- It also shows a button that says “Awesome! Install them please”.
- Click on this button.
- Here are your examples! 😉
If the snippets where installed previously and you want to create them again, do the following:
- Go to “snip” in your WordPress dashboard and choose “Settings”.
- Scroll down to the “Actions” part.
- Click the “Go for it” button where it says: “Reinstall predefined global snippets.”.
- You should then be redirected to the Global Snippets page and should see some new Global Snippets, like the “Article”.
How can I fill certain properties automatically?
- As you can read here, it’s possible to create properties from post content. Please take a look at the video we’ve prepared. It shows exactly how to do it.
- You can also use custom fields.
- If it’s necessary to overwrite certain values per-post: read how to make properties overridable.
Can I add another snippet to a post that has a global snippet?
Yes you can. Read more about this here: Can I use multiple snippets on one page?