前言介紹
- 這款 WordPress 外掛「Conditions for Texts (Dynamic Content)」是 2018-12-17 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2019-02-11,距離現在已有 2272 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
afnet |
外掛標籤
if | conditions | text blocks | if conditions | if statements |
內容簡介
條件文本WordPress外掛讓部落客在文章和頁面中使用IF和IF-ELSE條件。利用這個令人驚嘆的外掛,應用特定的條件,例如日期或時間,可以發布具體的內容和文字。
該外掛有標準版和擴展版,這是標準版!請閱讀文檔以了解兩個版本之間的差異以及如何獲取擴展版。
如果您對外掛中的變量有任何想法或願望,或者找到了錯誤 - 請聯繫我們!
如何使用這個外掛:
// 標準版:
[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]
// 擴展版:
[IF $month == 12 AND $day==6]It's Saint Nicholas[ELSE]I's not Saint Nicholas[/IF]
我們建議在純文本編輯區域使用語法。
支援以下比較運算符:
!=、==、>=、
原文外掛簡介
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]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!
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Conditions for Texts (Dynamic Content)」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。