About this plugin
This plugin allows you to create custom content that appears in your WordPress posts depending on query variables in the URL. \”
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. ’
-
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.
” box on the editor screen. 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. variablename=valuename and give this URL to people whom you would like to see your custom content.
us/get-custom-content-wordpress-plugin/
How can I override the default content defined for a particular variable combination?
The default content for the variable is displayed when the variable is not defined in the URL, or it is defined with a value that does not exist.
If you want to override this content in some place, use the same pattern for overriding a variable/value combination (see answer to previous question), but use “default” instead of the value name. Example:
-value-default
I want this shown instead of the default!
-value-default
How can I insert the URL’s query variable value into my site?
Sometimes you may want to use value in the user’s URL to display something on your page. ” on the page. To do this, enter a description for the particular variable (in this case, username) back on the screen where you can add or edit GET Custom Content Variables.
Include VALUE in the spot where you want the value to be filled in. For example, you could type:
Greetings, VALUE.