跳到内容

Event Shortcode

v1.0b

francismaile · 2011年7月23日 上架

Place time sensitive content into a post or page. When it expires it can be replaced by pre-set content or left blank.

正在使用
10 以下
评分
暂无
累计下载
1,554
最近更新
2011年7月23日
需要 WordPress 3.0+已测试到 3.0.5

贡献者

截图

Basic usage.
Basic usage.

Event Shortcode allows you to easily place time sensitive content into a post or page, which is automatically removed when it expires. This could be an upcoming event, information or a link to a news item that will not hold its freshness. Place this shortcode in each post up to the date of the event. The content will expire on the date and time you set. After that, the content is replaced by whatever text you specify or it can be left blank. This plugin offers a simple solution for sites where a full on event management system would be overkill.

Features include:
* Easy installation
* Simple interface
* Set it and forget it

Usage

[expired date=”7/20/11″ time=”12:00pm” message=”The party is over. Hope you were there!”]On 7/20/11 at 12:00pm (PDT)
we will have really cool party event.[/expired]

Will show in post untill 7/20 at 12 noon as:
On 7/20/11 at 12:00pm (PDT) we will have an event.

After 7/20 at 12 noon, it will show:
The party is over. Hope you were there!

Parameters:

date => the date the content will expire in the format mm/dd/yy or dd/mm/yyyy
time => the time the content will expire. Can be espressed in 12 or 24 hour format.
message => the content that will replace the original content. This can be left blank.
[expired]original content goes here[/expired]

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums