Allows you to add custom widget content on a post-by-post (or page) basis from the post editor screen.
Author: | Justin Tadlock (profile at wordpress.org) |
WordPress version required: | 4.9 |
WordPress version tested: | 5.0.3 |
Plugin version: | 1.0.0 |
Added to WordPress repository: | 03-12-2009 |
Last updated: | 21-02-2019
Warning! This plugin has not 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.
|
Rating, %: | 100 |
Rated by: | 2 |
Plugin URI: | https://themehybrid.com/plugins/my-snippets |
Total downloads: | 8 101 |
Active installs: | 100+ |
Click to start download
|
Screenshots
My Snippets meta box on the edit post screen.
My Snippets widget on the widgets screen.
FAQ
Why was this plugin created?
I love plugins like Widget Context and Widget Logic, which allow you to add contextual widgets. But, the thing that those plugins don’t do is give you a way to add widget content without visiting the Widgets admin screen in WordPress.
I wanted a way to add a widget on a per-post basis when writing the post itself, so this plugin was born.
No, it’s not a replacement of the aforementioned plugins but, rather, a complementary plugin.
How do I use it?
First, you need to add the “My Snippets” widget to any sidebar on your site. It won’t appear on the front end just yet though.
Any time you write a post, you can add a custom snippet title and content in the “My Snippets” meta box. If you write something in the meta box, it will automatically be shown in place of the widget when viewing that post on your site. If nothing is written in the meta box, nothing will be shown for the post.
Does it work for other post types?
Yes, it works for all publicly-queryable post types. Basically, if your post type has its own “page” on the front end of the site, you can add custom snippet content.
What else do I need to know?
That’s pretty much it. This is an extremely simple plugin.
ChangeLog
Version 1.0.0
- Recoded the plugin to utilize modern PHP techniques.
- Upgraded the widget to make sure it plays nicely with PHP 7+.
Version 0.2.0
- Rewrote the code base to bring everything up to current WordPress standards.
- Added support for custom post types.
Version 0.1.0
- Plugin launch. Everything’s new!