=== Time goes by === Contributors: tsato Donate link: https://blog.gti.jp/time-goes-by Tags: time goes by,scheduled,contents Requires at least: 3.6 Tested up to: 4.4 Stable tag: 1.2 == Description == ショートコード [tgb ][/tgb] で囲まれた部分が start_time, end_time, config で指定された時間帯等に表示されるようになるプラグインです。 start_time だけの指定 end_time だけの指定も可能です。 config パラメータは下記の設定が出来ます。 [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日担った瞬間表示されなくなります。 ・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のコンテンツが表示されます。 ----------------------- 制作:佐藤 毅(さとう たけし) 福岡市中央区大名 ホームページ制作 株式会社ジーティーアイ代表 == Installation == e.g. 1. Upload `time-goes-by` to the `/wp-content/plugins/` directory 2. Activate the plugin through the 'Plugins' menu in WordPress == Frequently Asked Questions == 質問やご要望はSupportまたは弊社お問い合わせ(http://gti.jp/)へお願いします! == Screenshots == == Changelog == = 1.2 = configパラメータ追加 = 1.1 = ソースコードにライセンス記述 = 1.0 = 新規作成 == Upgrade Notice == = 1.1 = time-goes-by.php を time_goes_by.php にリネームしました。 以前のバージョンをご利用の方は一度プラグイン停止→削除(推奨)後、インストールし直してください。 = 1.0 = とりあえず作りました! == Arbitrary section == == A brief Markdown Example ==