Title: GET Custom Content
Author: bgentry
Published: <strong>19.11.2013</strong>
Last modified: 11.01.2015

---

Шукати плагіни

Цей плагін **не перевірявся з останніми 3-ма основними випусками WordPress**. Можливо,
він більше не може розроблятися або підтримуватися, і він може мати проблеми сумісності
при використанні з більш новими версіями WordPress.

![](https://s.w.org/plugins/geopattern-icon/get-custom-content.svg)

# GET Custom Content

 Від автора [bgentry](https://profiles.wordpress.org/bgentry/)

[Завантажити](https://downloads.wordpress.org/plugin/get-custom-content.1.1.1.zip)

 * [Деталі](https://uk.wordpress.org/plugins/get-custom-content/#description)
 * [Відгуки](https://uk.wordpress.org/plugins/get-custom-content/#reviews)
 *  [Встановлення](https://uk.wordpress.org/plugins/get-custom-content/#installation)
 * [Розробка](https://uk.wordpress.org/plugins/get-custom-content/#developers)

 [Підтримка](https://wordpress.org/support/plugin/get-custom-content/)

## Опис

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:

 1. 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.’
 2. 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.

 1. 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”]
 2. 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/

### 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. For example, you might want the link example.com/my-page/?username=Gretel 
to display “Greetings, Gretel!” 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_.

## Встановлення

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.

## Часті питання

  How can I override the content for a specific variable / value combination?

If you have created a variable and some values for it, you can override the default
content using the shortcode.

To do this, after you enter the shortcode [bg_gcc variable=”variablename”], type[/
bg_gcc]. Between these codes, type values like this:

-value-valuename
 Here is content to override the pre-defined content! -value-valuename

New in version 1.1, you can override the content for a variable/value combination
in the widget using the same text that you would use in the shortcode method. Just
enter this text in the appropriate textarea in the widget form.

## Відгуки

Для цього плагіна немає відгуків.

## Учасники та розробники

“GET Custom Content” — проект з відкритим вихідним кодом. В розвиток плагіну внесли
свій вклад наступні учасники:

Учасники

 *   [ bgentry ](https://profiles.wordpress.org/bgentry/)

[Перекладіть “GET Custom Content” на вашу мову.](https://translate.wordpress.org/projects/wp-plugins/get-custom-content)

### Цікавитесь розробкою?

[Перегляньте код](https://plugins.trac.wordpress.org/browser/get-custom-content/),
перегляньте [сховище SVN](https://plugins.svn.wordpress.org/get-custom-content/)
або підпишіться на [журнал розробки](https://plugins.trac.wordpress.org/log/get-custom-content/)
за допомогою [RSS](https://plugins.trac.wordpress.org/log/get-custom-content/?limit=100&mode=stop_on_copy&format=rss).

## Журнал змін

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!

## Мета

 *  Версія **1.1.1**
 *  Останнє оновлення **11 років тому**
 *  Активних встановлень **10+**
 *  Версія WordPress ** 3.0 або вище **
 *  Tested up to **4.1.42**
 *  Мова
 * [English (US)](https://wordpress.org/plugins/get-custom-content/)
 * Позначки
 * [custom content](https://uk.wordpress.org/plugins/tags/custom-content/)[urls](https://uk.wordpress.org/plugins/tags/urls/)
 *  [Розширений перегляд](https://uk.wordpress.org/plugins/get-custom-content/advanced/)

## Оцінки

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/get-custom-content/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/get-custom-content/reviews/)

## Учасники

 *   [ bgentry ](https://profiles.wordpress.org/bgentry/)

## Підтримка

Є що сказати? Потрібна допомога?

 [Перейти в форум підтримки](https://wordpress.org/support/plugin/get-custom-content/)

## Пожертвування

Ви хотіли б підтримати розвиток цього плагіна?

 [ Пожертвувати на розвиток плагіна ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MRKES4)