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 YouTube Carousel Widget

By Common Ninja

YouTube CarouselTry 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.

YouTube Carousel for Wordpress logo

YouTube Carousel

Show YouTube videos with a YouTube carousel that displays clips in a smooth, customizable layout to boost visibility and keep visitors engaged.

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.

Google Play Reviews for Wordpress logo

Google Play Reviews

Show Google Play reviews for your Android app to build trust, strengthen credibility, and help visitors make confident download decisions.

Feature Voting for Wordpress logo

Feature Voting

Use feature voting so users submit ideas, vote on requests, and help you prioritize product updates by real customer demand.

Countdown Bar for Wordpress logo

Countdown Bar

Add a countdown bar to your site to create urgency, highlight limited time offers, and drive faster engagement and higher conversions.

Donation Form for Wordpress logo

Donation Form

Collect and manage donations securely with a customizable online donation form that supports Stripe or PayPal and helps increase contributions.

Team Members Blobs for Wordpress logo

Team Members Blobs

Use team members blobs to present your staff in a clear, creative format that builds trust, supports transparency, and strengthens brand credibility.

Cookies Consent Bar for Wordpress logo

Cookies Consent Bar

Display a cookies consent bar that explains usage and supports GDPR compliance, enhancing user trust and legal clarity.

Company Branch Flip Cards for Wordpress logo

Company Branch Flip Cards

Display locations with company branch flip cards that help customers find nearby offices, understand key details, and enjoy a smoother overall experience.

Podcast Player for Wordpress logo

Podcast Player

Add a podcast player to your site to embed and organize episodes, provide responsive playback, and keep listeners engaged.

MP3 Player for Wordpress logo

MP3 Player

Add an MP3 Player to your website and engage visitors with music, podcasts, and spoken audio without any setup complexity.

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