
內容簡介
Time Lord 是一個外掛,允許您設定將部分內容於指定日期發布。它還可以根據過去的某一年份或設定未來的年份來計算年齡。
您可以通過 [timelord] 快速鍵在文章、頁面或任何內容類型中使用它。以下是一些常見的例子,假設現在是 2015 年 4 月:
[timelord from="2016-01"]SOME CONTENT[/timelord] 只會在 2016 年 1 月時輸出 "SOME CONTENT"。
[timelord to="2016-01"]SOME CONTENT[/timelord] 會一直輸出 "SOME CONTENT" 直到 2016 年 1 月然後刪除它。
[timelord from="2015-04-01" to="2016-04-01" every="1 day"]SOME CONTENT[/timelord] 會每隔一天輸出 "SOME CONTENT" 直到 2016 年 4 月。
[timelord from="2015-04-01" to="2016-04-01" every="Monday"]SOME CONTENT[/timelord] 會每個星期一輸出 "SOME CONTENT" 直到 2016 年 4 月。
[timelord to="2014-01" del="yes"]SOME CONTENT[/timelord] 會輸出 <del>SOME CONTENT</del>(檢查屏幕截圖以查看用戶在前端看到的內容示例)。
[timelord from="2015-01" to="2016-01"]SOME CONTENT[/timelord] 會從 2015 年 1 月至 2016 年 1 月輸出 "SOME CONTENT"。
[timelord mode="hide" from="2015-01" to="2016-01"]SOME CONTENT[/timelord] 除了從 2015 年 1 月至 2016 年 1 月外,將輸出 "SOME CONTENT"。
[timelord year="1980"] 會輸出 "35"。
[timelord year="1980" ordinal="yes"] 會輸出 "35th"。
查看演示
特點
允許您在特定時間框架內顯示或隱藏內容。
支援按照特定間隔(例如每小時、每天、每月等)進行重複顯示。
在過期時,允許您將內容包裝在 <del></del> 標籤中,而不是刪除它。
當實際內容不應該顯示時,可以顯示替代訊息。
可以輸出直到內容上/下線所剩下的時間。
可以計算年齡,甚至輸出具有序數後綴的年齡。
您可以在任何可以使用簡碼的地方使用它,在文章、頁面、自定義文章等地方。
您可以在一篇文章中添加任意多個簡碼。
外掛標籤
開發者團隊
原文外掛簡介
Time Lord is a plugin which allows you to schedule the publication of part of your content on a set date. It can also calculate age based on a set year in the past or the estimated time if the year is set in the future.
You can use it in posts, pages or any other content type via the [timelord] shordcode. Here are some common examples, supposing that present day is on April 2015:
[timelord from="2016-01"]SOME CONTENT[/timelord] would output “SOME CONTENT” only when January 2016 comes.
[timelord to="2016-01"]SOME CONTENT[/timelord] would output “SOME CONTENT” until January 2016 and then it would remove it.
[timelord from="2015-04-01" to="2016-04-01" every="1 day"]SOME CONTENT[/timelord] would output “SOME CONTENT” every other day until April 2016.
[timelord from="2015-04-01" to="2016-04-01" every="Monday"]SOME CONTENT[/timelord] would output “SOME CONTENT” every Monday until April 2016.
[timelord to="2014-01" del="yes"]SOME CONTENT[/timelord] would output SOME CONTENT (check screenshot for an example of what the user would actually see in the frontend).
[timelord from="2015-01" to="2016-01"]SOME CONTENT[/timelord] would output “SOME CONTENT” from January 2015 to January 2016.
[timelord mode="hide" from="2015-01" to="2016-01"]SOME CONTENT[/timelord] would output “SOME CONTENT” every other time except from January 2015 to January 2016.
[timelord year="1980"] would output “35”.
[timelord year="1980" ordinal="yes"] would output “35th”.
View the demo
Features
Allows you to show or hide content at a given timeframe.
Supports recurring display of the output at given intervals (e.g. every hour, every day, every month etc.).
Allows you to wrap your content in the tag instead of removing it when expires.
It can display an alternate message when the actual content is not supposed to be shown.
It can output the time remaining until the content will be up or down.
It can calculate age and even output it with an ordinal suffix.
You can use it anywhere a shortcode would go. On posts, pages, custom posts.
You can add as many shortcodes as you like in a single post.
