This plugin allows you to create custom content that appears in your WordPress posts depending on query variables in the URL. For example, appending \"?customer=yes\" to your URL can make the sidebar display the phrase \"We love our customers!\" while \"?customer=notyet\" can make the sidebar display \"Become our customer today!\"
The plugin includes a shortcode for insterting custom content into a page or post, as well as a widget for adding custom content to sidebars.
How to use:
After installing the plugin, you will find "GET Custom Content" in your dashboard menu.
There are just a few steps:
- Create a Variable.
To create a variable, click "Custom Content Variables" under the "GET Custom Content" section of the Dashboard menu. Type a name for your variable, then click 'add new variable.'
- Create values for the variable
Click "New Value" under the "GET Custom Content" section of the Dashboard menu. Type the name of your value in the post title field, and type some content. Then select the variable to which this value belongs in the "GET Custom Content Variables" box on the editor screen.
If you want this particular value to be the default value, and therefore be shown when the variable is not defined in the URL, click the check box in the "Make this the Default?" box on the editor screen. It will appear if the variable is not defined in the URL (such as
www.example.com) or when the variable is defined but the value does not exist (such as
www.example.com?variable=nonexistent)
It's up to you to make sure you don't set up multiple values to be the default. If more than one value is set as the default, then whichever one is first when WordPress asks for the default will be shown as the default.
- Use the widget or shortcode to ask the site to load the custom content
There are two ways to display custom content. One is to use the GET Custom Content widget to drop it in the sidebar. The second method allows you to load custom content in a page's content using the shortcode, format [bg_gcc variable="variableName"]
- Create a URL. Just take a normal URL for your post or page, and add ?variablename=valuename and give this URL to people whom you would like to see your custom content.
Detailed instructions are here:
http://bryangentry.us/get-custom-content-wordpress-plugin/
Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
1.1.1 - Fixed one error.
1.1 - Added ability to set a default value for each variable. Default can be set with a meta box, overridden in shortcode. Also added ability to override pre-defined content in the widget. Cleaned up a lot of code.
1.0 - Plugin invented!