WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin v1.2.9.1

Time goes by

Switch the display of content based on time using a shortcode. ショートコードで囲んだコンテンツを時間に応じて表示切替できるプラグイン。

Time goes by

The facts

Active installs
100+
Price
Free
Last updated
12 Sep 2025
Added
Jan 2016
Requires WP
6.0
Tested up to
WP 6.8.8
Downloads
11,392

Our analysis

AI-assisted

Time Goes By is a WordPress plugin that allows you to control the visibility of content based on specified time parameters. You can use shortcodes to set start and end times, as well as configure detailed display settings for specific days, hours, and months. This plugin is suitable for users who want to manage content visibility dynamically according to time criteria.

The plugin supports various configurations, including repeating displays based on day, hour, week, and month. It also allows for timezone specification and includes additional shortcodes for displaying post titles and content. This makes it useful for creating time-sensitive promotions or information on your site.

Best for: This plugin suits website owners looking to display content based on specific time conditions.

What it does well

  • Allows content visibility control based on time
  • Supports detailed configuration for days, hours, and months
  • Includes additional shortcodes for displaying post content and titles
  • Timezone specification is possible

Where it falls short

  • Limited information available about user ratings and feedback

Verdict

Time Goes By provides a flexible solution for managing content visibility based on time. It is particularly useful for time-sensitive promotions or announcements.

From the developer

The author's own description of Time goes by, lightly tidied.

ショートコード [tgb ][/tgb] で囲まれた部分が start_time, end_time, config で指定された時間帯等に表示されるようになるプラグインです。
start_time だけの指定
end_time だけの指定も可能です。

[tgb start_time=”20160101″][/tgb] で囲まれた部分は 2016年1月1日を迎えると表示されます。
[tgb end_time=”20161231″][/tgb] で囲まれた部分は 2016年12月31日になるまで表示されます。
2016年12月31日いっぱい表示したい場合は [tgb end_time=”20161231235959″][/tgb] で囲むか
[tgb end_time=”20170101″][/tgb] で囲むと2017年1月1日担った瞬間表示されなくなります。

より詳細で繰り返しも可能な config パラメータの設定ができるようにしました。
設定は config=”day:1|2|3|4|5,hour:7|8|9|10|11″ のように設定します。
上記の設定は下記のように理解されます。

「毎月1〜5日 の 7〜11時 にだけ表示される」

これに start_time, end_time も絡めて詳細に繰り返しとなる部分を設定することが可能です。
そして複数の設定を一度に行うことができます。パラメータをカンマ区切りで指定できます。
** 複数の設定は記述の順番に実行されます。ただし、任意のパラメータについては最後に実行されます。
** 規定のパラメータ、任意のパラメータ以外のパラメータは無視されます。

config パラメータは下記の設定が出来ます。
[1] hour: 24時表記で設定します。7〜10時という場合は hour:7|8|9(10時台に入ったら表示されない) というように | (vertical line)で区切るようにします。
[2] day: 毎月○日の設定をします。 day:7|8|9|10 とすると 7〜10日というようになります。
[3] week: 毎週○曜日の設定をします。 week:sun|mon|tue とすると日〜火曜日という感じです。一応日本語での設定も受け付けるはずです。 week:火|木|土 など。
[4] month: ○月の設定をします。 month:6|7|8 とすると6〜8月という感じです。季節ごとの表示切り替えができる感じです。
[5] 任意のパラメータ これは
  
  add_filter(‘time_goes_by_judgement’, ‘〜任意のメソッド名〜’, 10, 3);
  
  という感じにfunctions.phpに記述し
  任意のメソッド名にて TRUE か FALSE を返却すればそのように表示されます。
  そもそも他の判定に依存しないように $flg を引数に入れていますので、そこまでの判定を覆すことも可能です。
  $config には任意のパラメータ以外の上記パラメータも入ってきます。 $content にはショートコードで囲まれた部分が入ってますので
  様々な利用方法・判定方法が考えられます。
  apply_filters( ‘time_goes_by_judgement’, $flg, $configs, $content );

  祝日に表示する などは現在のプラグイン自体にはない機能ですが、これを使って実装すると良いでしょう。

例:
[tgb config=”month:1|2|3,day:5|15|25,hour:13|14|15″]1〜3月の 5の付く日は タイムサービスを行っています!!! ただいま13時〜16時までサービスタイム実施中!![/tgb]

・timezone=”Asia/Tokyo” のようにパラメータ指定でタイムゾーンの指定ができます。

このデフォルト値は内部設定のタイムゾーンとなっています。

このデフォルト値は管理画面から変更することが可能です。

その他、この中で利用出来るように[disp_content][disp_title]ショートコードも用意しました。
[disp_content post_id=”xxx”] とすると、投稿IDがxxxのコンテンツを表示します。
[disp_title post_id=”xxx”] とすると、投稿IDのタイトルを表示します。

例:
[tgb start_time=”20160101″ end_time=”20160201″]

[disp_title post_id=”1234″]

[disp_content post_id=”1234″][/tgb]

2016年1月1日から2016年2月1日になるまで(1月31日の間まで)投稿ID:1234のタイトルがh2タグでその下に投稿ID:1234のコンテンツが表示されます。

Read the full description on the official page →

Tagged as

topic Time Switch Title