前言介紹
- 這款 WordPress 外掛「Display During Conditional Shortcode」是 2013-03-07 上架。
- 目前有 300 個安裝啟用數。
- 上一次更新是 2024-10-31,距離現在已有 185 天。
- 外掛最低要求 WordPress 2.7 以上版本才可以安裝。
- 有 3 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
display | shortcode | strtotime | conditional |
內容簡介
輸入開始和結束日期/時間,您希望短碼內容在期間內顯示。選擇性地包括一個訊息或不同的內容,以便時間過去後顯示。
短碼:
將[display_during end_day_time="June 27, 2018 10:00 am" message="抱歉,這個內容已不再提供。"]CONTENT_TO_DISPLAY[/display_during]插入到任何文章或頁面中,以有條件地顯示短碼內的內容。如果開始和結束時間參數不是當前有效的,則顯示您指定的message參數。
所有短碼參數:
[display_during start_day_time="Sun 8:00 am" end_day_time="Mon 8:00 pm" timezone_location="America/Denver" message="抱歉,此內容目前不可用。"]CONTENT_TO_DISPLAY[/display_during]
start_day_time ─ 選擇性 ─ 內容應該從哪一天/時開始顯示?
end_day_time ─ 必需 ─ 短碼內容什麼時間應該停止顯示?
timezone_location ─ 選擇性 ─ 時區默認使用在「設定 > 一般」中設置的內容。您可以使用這個選擇性參數來指定不同的時區位置。使用標準的PHP時區
原文外掛簡介
Specify the start and end date / times you’d like content enclosed by the shortcode to be displayed during. Optionally include a message or different content to display once that time period has passed.
Shortcodes:
Insert [display_during end_day_time="June 27, 2018 10:00 am" message="Sorry, this content no longer available."]CONTENT_TO_DISPLAY[/display_during] into any post or page to conditionally display whatever is inside of the shortcode. The message parameter you specify will display if the start and end time parameters are not currently valid.
All shortcode parameters:
[display_during start_day_time="Sun 8:00 am" end_day_time="Mon 8:00 pm" timezone_location="America/Denver" message="Sorry, this content is not currently available."]CONTENT_TO_DISPLAY[/display_during]
start_day_time – OPTIONAL – What day/time or time of day should the contents start being displayed?
end_day_time – REQUIRED – What day/time or time of day should the content of the shortcode stop being displayed?
timezone_location – OPTIONAL – The timezone uses by default whatever is set for the site in Settings > General. You can use this optional parameter to specify a different timezone location. Uses the standard PHP timezones
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Display During Conditional Shortcode」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。