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 Image Poll Widget

By Common Ninja

Image PollTry 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

Galleries

Galleries plugins for Wordpress

SEO

SEO plugins for Wordpress

Contact Form

Contact Form plugins for Wordpress

Forms

Forms plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Social Sharing

Social Sharing 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

Comments

Comments plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Maps

Maps plugins for Wordpress

Security

Security plugins for Wordpress

Translation

Translation plugins for Wordpress

Ads

Ads plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Music Player

Music Player plugins for Wordpress

Backup

Backup plugins for Wordpress

Privacy

Privacy plugins for Wordpress

Optimize

Optimize plugins for Wordpress

Chat

Chat plugins for Wordpress

Countdown

Countdown plugins for Wordpress

Email Marketing

Email Marketing plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Membership

Membership 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

Ecommerce

Ecommerce plugins for Wordpress

Customer Support

Customer Support plugins for Wordpress

Inventory

Inventory plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Testimonials

Testimonials plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Slider

Slider plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Membership

Membership plugins for Wordpress

Forms

Forms plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Contact

Contact plugins for Wordpress

Comments

Comments plugins for Wordpress

Analytics

Analytics 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.

Image Poll for Wordpress logo

Image Poll

Create interactive image polls that use compelling visuals to boost engagement, gather feedback, and help visitors vote easily.

Accordion for Wordpress logo

Accordion

Add collapsible content sections to your site to organize information and help users navigate content more efficiently.

Yelp Reviews for Wordpress logo

Yelp Reviews

Show Yelp reviews to build trust, strengthen credibility, and help visitors make confident decisions that support higher sales.

My Reviews on Amazon for Wordpress logo

My Reviews on Amazon

Show your Amazon product reviews with My Reviews on Amazon to build trust, boost credibility, and help visitors make confident purchase decisions.

Image Carousel for Wordpress logo

Image Carousel

Showcase images with an image carousel that rotates or slides visuals, improves design, and draws attention to key content.

Before & After Slider for Wordpress logo

Before & After Slider

Add an interactive before and after slider to your site to show visual transformations, capture attention, and help visitors understand real results.

Image Gallery for Wordpress logo

Image Gallery

Showcase photos with an image gallery that displays pictures and captions in grids, improves design, and boosts visitor engagement.

Tripadvisor Reviews for Wordpress logo

Tripadvisor Reviews

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

Donation Button for Wordpress logo

Donation Button

Add a donation button that lets users contribute easily using PayPal or Stripe, supporting causes directly from your site.

Glassdoor Reviews for Wordpress logo

Glassdoor Reviews

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

Flash Cards for Wordpress logo

Flash Cards

Create interactive flash cards that present questions and answers in a clear, customizable format to support learning, training, and user engagement.

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