Title: Conditions for Texts (Dynamic Content)
Author: appfield.net
Published: <strong>18 ਦਸੰਬਰ 2018</strong>
Last modified: 11 ਫਰਵਰੀ 2019

---

ਪਲੱਗਇਨਾਂ ਖੋਜੋ

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/conditions-for-texts/assets/icon-256x256.jpg?rev=1997525)

# Conditions for Texts (Dynamic Content)

 [appfield.net](https://profiles.wordpress.org/afnet/) ਵੱਲੋਂ

[ਡਾਊਨਲੋਡ ਕਰੋ](https://downloads.wordpress.org/plugin/conditions-for-texts.zip)

 * [ਵੇਰਵਾ](https://pan.wordpress.org/plugins/conditions-for-texts/#description)
 * [ਸਮੀਖਿਆਵਾਂ](https://pan.wordpress.org/plugins/conditions-for-texts/#reviews)
 *  [ਸਥਾਪਤੀਕਰਨ](https://pan.wordpress.org/plugins/conditions-for-texts/#installation)
 * [ਵਿਕਾਸ](https://pan.wordpress.org/plugins/conditions-for-texts/#developers)

 [ਸਹਿਯੋਗ](https://wordpress.org/support/plugin/conditions-for-texts/)

## ਵੇਰਵਾ

The WordPress plug-in **Conditions for Texts** allows bloggers to use IF- & IF-ELSE
conditions in their posts and pages. With this amazing plug-in specific content 
and texts can be published in accordance with certain conditions, for example date
or time.

**The plug-in comes in a standard- and extended version – this is the standard version!**
Please read the [documentation](https://appfield.net/plug-ins/conditions-for-texts/english/)
to get information about the differences between the two versions and how to get
the extended version.

**Do you have any ideas, or wishes for more variables in the plug-in included or
did you find a bug – please [contact us](https://appfield.net/contact/)!**

### How to use this plug-in:

    ```
    // In Standard Version:
    [IF $month == 12]It's christmas time[/IF]
    [IF $month != 12]It's not christmas time[/IF]
    [IF $hour <= 12]Before lunch[/IF][IF $hour > 12]After lunch[/IF]
    [IF $month == 12]It's christmas time[ELSE]It's not christmas time[/IF]

    // In Extended Version:
    [IF $month == 12 AND $day==6]It's Saint Nicholas[ELSE]I's not Saint Nicholas[/IF]
    ```

_We recommend the use of the syntax in the plain text editing location._

### The following comparison operators are supported:

!= , == , >= , <= , < , >

### The following variables for the conditions are available:

#### In Standard- & Extended Version:

 * **$day** – Day (1…31)
 * **$month** – Month (1..12)
 * **$year** – Year (2018)
 * **$hour** – Hour (1..24)
 * **$minute** – Minute (1..59)
 * **$date** – Date (2018-12-24)

#### Only included in the Extended Version:

 * **$remoteIP** – IP-Address of the visitor (123.123.123.123)
 * **$userAgent** – User-Agent of the visitor (String)
 * **$httpReferer** – Referer-URL of the visitor (String)
 * **$browserLanguage** – Language of the Browser (e.g. de,en,…)
 * **$permaLink** – Permanent url of the current page or post (https://…/category/
   title)
 * **$dayOfWeek**– Day of the week (0=Sonntag, 6=Samstag)
 * **$dayOfYear** – Day of the year (1…365)
 * **$leapYear** – Leap year (true, false)
 * **$amORpm** – Morning or Afternoon (am, pm)
 * **$pageId**– ID of the current page (int)
 * **$postId** – ID of the current post (int)
 * **$categoryName** – Name of the category (String)
 * **$authorId** – ID of the author (int)

[Do you have any ideas or wishes for more variables, please use our contact form!](https://appfield.net/contact/)

### Where can i use the condition statements and which third party plugins are supported?:

**You can use the conditions in the following sections:**

 * Content text of a page or post (the_content)
 * Title of a page or post (the_title, pre_get_document_title)
 * Meta-Title and Meta-Description (wpseo_title, wpseo_metadesc)
 * Text in the header (wp_head)
 * Text in the footer (wp_footer)
 * Text in widgets (widget_text)

**The following third party plugins are supported:**

 * Shortcode-Plugins like [Shortcoder](https://wordpress.org/plugins/shortcoder/)(
   Useful: Check if parameters in the shortcode content are set!)
 * [Tablepress](https://wordpress.org/plugins/tablepress/)

[If you want another plugin-support, please use our contact form!](https://appfield.net/contact/)

## ਸਕਰੀਨਸ਼ਾਟ

 * [[

## ਸਥਾਪਤੀਕਰਨ

You can install this plugin directly from your WordPress dashboard:

**Standard-Version:**

 1. Go to the _Plugins_ menu and click _Add New_.
 2. Search for _Conditions for Texts_ or click on “Upload plugin” and choose the downloaded
    zip-file _conditions-for-texts-standard.zip_
 3. Click _Install Now_.
 4. Activate the plug-in.
 5. Have fun!

**Extended-Version:**

 1. [Download the Extended Version from here](https://appfield.net/plug-ins/conditions-for-texts/english/)
 2. Go to the _Plugins_ menu and click _Add New_.
 3. Click on “Upload plugin” and choose the downloaded zip-file _conditions-for-texts-
    extended.zip_
 4. Click _Install Now_.
 5. Activate the plug-in.
 6. Have fun!

## ਸਮੀਖਿਆਵਾਂ

There are no reviews for this plugin.

## ਯੋਗਦਾਨੀ ਤੇ ਵਿਕਾਸਕਾਰ

“Conditions for Texts (Dynamic Content)” is open source software. The following 
people have contributed to this plugin.

ਯੋਗਦਾਨੀ

 *   [ appfield.net ](https://profiles.wordpress.org/afnet/)

[“Conditions for Texts (Dynamic Content)” ਦਾ ਆਪਣੀ ਭਾਸ਼ਾ ਵਿੱਚ ਅਨੁਵਾਦ ਕਰੋ।](https://translate.wordpress.org/projects/wp-plugins/conditions-for-texts)

### ਵਿਕਾਸ ਕਾਰਜ ਵਿੱਚ ਰੁਚੀ ਰੱਖਦੇ ਹੋ?

[Browse the code](https://plugins.trac.wordpress.org/browser/conditions-for-texts/),
check out the [SVN repository](https://plugins.svn.wordpress.org/conditions-for-texts/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/conditions-for-texts/)
by [RSS](https://plugins.trac.wordpress.org/log/conditions-for-texts/?limit=100&mode=stop_on_copy&format=rss).

## ਤਬਦੀਲੀ-ਚਿੱਠਾ

#### 1.0.2

 * Bug

#### 1.0.1

 * Add IF-ELSE support for standard version.

#### 1.0.0

 * Initial release.

## ਮੈਟਾ

 *  Version **1.0.2**
 *  Last updated **7 ਸਾਲ ਪਹਿਲਾਂ**
 *  Active installations **10+**
 *  WordPress version ** 4.0 ਜਾਂ ਇਸ ਤੋਂ ਉੱਚਾ **
 *  Tested up to **5.0.25**
 *  PHP version ** 5.6 ਜਾਂ ਇਸ ਤੋਂ ਉੱਚਾ **
 *  Language
 * [English (US)](https://wordpress.org/plugins/conditions-for-texts/)
 * Tags
 * [conditions](https://pan.wordpress.org/plugins/tags/conditions/)[if](https://pan.wordpress.org/plugins/tags/if/)
   [text blocks](https://pan.wordpress.org/plugins/tags/text-blocks/)
 *  [Advanced View](https://pan.wordpress.org/plugins/conditions-for-texts/advanced/)

## ਦਰਜਾਬੰਦੀ

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/conditions-for-texts/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/conditions-for-texts/reviews/)

## ਯੋਗਦਾਨੀ

 *   [ appfield.net ](https://profiles.wordpress.org/afnet/)

## ਸਹਿਯੋਗ

ਕੁਝ ਕਹਿਣਾ ਹੈ? ਮਦਦ ਚਾਹੀਦੀ ਹੈ?

 [ਸਹਿਯੋਗ ਫੋਰਮ ਦੇਖੋ](https://wordpress.org/support/plugin/conditions-for-texts/)

## ਦਾਨ ਦਿਉ

Would you like to support the advancement of this plugin?

 [ ਇਸ ਪਲੱਗਇਨ ਨੂੰ ਦਾਨ ਦਿਉ ](https://appfield.net/plug-ins/conditions-for-texts/)