Conditions for Texts (Dynamic Content)

Conditions for Texts (Dynamic Content)

Wordpress plugin

Install on Wordpress

App Details

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 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!

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!

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 (Useful: Check if parameters in the shortcode content are set!)
  • Tablepress

If you want another plugin-support, please use our contact form!

Pricing

Starting from $0 per month.

Check Out the RSS Feed Slider Widget

By Common Ninja

RSS Feed SliderTry For Free!

App Info

Rating

Reviewers

No reviews

Tags

conditions
if
text blocks

Developed By

appfield.net

Quick & Easy

Find the Best Wordpress plugins for you

Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!

Testimonial

Testimonial plugins for Wordpress

Contact Form

Contact Form plugins for Wordpress

Maps

Maps plugins for Wordpress

Translation

Translation plugins for Wordpress

Chat

Chat plugins for Wordpress

Slider

Slider plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Contact

Contact plugins for Wordpress

Galleries

Galleries plugins for Wordpress

SEO

SEO plugins for Wordpress

Forms

Forms plugins for Wordpress

Comments

Comments plugins for Wordpress

Backup

Backup plugins for Wordpress

Privacy

Privacy plugins for Wordpress

Optimize

Optimize plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Comments

Comments plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Video Player

Video Player plugins for Wordpress

popup

popup plugins for Wordpress

SiteMap

SiteMap plugins for Wordpress

Payment

Payment plugins for Wordpress

Coming Soon

Coming Soon plugins for Wordpress

Inventory

Inventory plugins for Wordpress

Testimonials

Testimonials plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Membership

Membership plugins for Wordpress

Forms

Forms plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Sliders

Sliders plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Security

Security plugins for Wordpress

Ads

Ads plugins for Wordpress

Music Player

Music Player plugins for Wordpress

Countdown

Countdown plugins for Wordpress

Email Marketing

Email Marketing plugins for Wordpress

Membership

Membership plugins for Wordpress

Ecommerce

Ecommerce plugins for Wordpress

Customer Support

Customer Support plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Common Ninja Apps

Some of the best Common Ninja plugins for Wordpress

Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.

RSS Feed Slider for Wordpress logo

RSS Feed Slider

Show RSS feed updates with an RSS feed slider that auto updates, displays posts in a smooth layout, and keeps visitors engaged.

Sticky Video for Wordpress logo

Sticky Video

Use a sticky video that stays visible while users scroll to keep content in view, increase watch time, and boost engagement.

Glassdoor Reviews for Wordpress logo

Glassdoor Reviews

Show Glassdoor reviews to highlight employee feedback, strengthen employer brand, and help candidates trust your company.

Timeline for Wordpress logo

Timeline

Use a timeline widget to display events and milestones in chronological order with images and text so visitors understand your story clearly.

Reddit Feed for Wordpress logo

Reddit Feed

Show Reddit posts with a Reddit feed that updates automatically, improves content discovery, and keeps visitors engaged with fresh discussions.

3D Cards for Wordpress logo

3D Cards

3D cards that highlight important information with depth and motion, capture attention instantly, and help visitors navigate content more effectively.

Form Builder for Wordpress logo

Form Builder

Create custom forms with a form builder that offers advanced field types, easy layout control, and flexible options for any purpose.

Image Grid Slider for Wordpress logo

Image Grid Slider

Showcase visuals with an image grid slider that blends a grid layout and carousel motion to create a dynamic, customizable, mobile friendly display.

Stop Motion Player for Wordpress logo

Stop Motion Player

Create engaging stop motion displays with a stop motion player that turns image sequences into interactive animations to boost creativity and visitor engagement.

Lottie Player for Wordpress logo

Lottie Player

Use a Lottie player to embed lightweight JSON animations that improve visual design, keep pages fast, and create a smoother user experience.

Airbnb Reviews for Wordpress logo

Airbnb Reviews

Show Airbnb reviews to build trust, improve credibility, and help visitors make confident booking decisions that support higher property sales.

Charts & Graphs for Wordpress logo

Charts & Graphs

Add charts and graphs to your site to present data clearly, help visitors understand insights faster, and support more confident decision making.

More plugins

plugins You Might Like

Discover Apps By Platform

Discover the best apps for your website

WordPress
Wix
Shopify
Weebly
Webflow
Joomla
PrestaShop
Shift4Shop
WebsiteX5
MODX
Opencart
NopCommerce

Common Ninja Search Engine

The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!

Multiple platforms