[WordPress] 外掛分享: Intermittent Date

前言介紹

  • 這款 WordPress 外掛「Intermittent Date」是 2008-04-19 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2008-11-17,距離現在已有 6310 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.5 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

simonwheatley |

外掛標籤

date | post | theme | the loop | intermittent date |

內容簡介

將節點加入至顯示文章清單的頁面,可在The Loop內使用。輸出日期標頭以分隔文章列表。參閱the_date()
節點文件 以了解用法。

有任何問題?請聯絡我。

已知問題/漏洞

如發現任何問題,請回報。

範例

建立類似以下格式,使用如下語法:

標題:2008年3月
文章:2008年3月15日
文章:2008年3月28日
文章:2008年3月29日

標題:2008年4月
文章:2008年4月1日
文章:2008年4月4日

等等……

新增一個日期標頭:

<?php intermittent_date( 'F Y', '<h3 class="date-header">', '</h3>' ); ?>

建立類似以下格式,使用如下語法:

標題:2008年3月25日
文章:2008年3月25日08點00分
文章:2008年3月25日11點37分
文章:2008年3月25日15點33分

標題:2008年3月22日
文章:2008年3月25日09點12分
文章:2008年3月25日10點16分

等等……

新增一個日期標頭:

<?php intermittent_date( 'jS F Y', "<h3 class='date-header'>", "</h3>" ); ?>

然後您可以使用 CSS 加以樣式化(但您的主題可能已經為您處理了這些)。

原文外掛簡介

Adds a template tag for use on pages which list posts, and to be used
within The Loop. Outputs
a date header to split up the post listings. See
the_date()
template tag docs for usage.
Any issues? Please contact me.
Known issues / bugs
Please report any issues that you find.
Examples
To produce something like this:
Heading: March, 2008
Post: dated 15th March
Post: dated 28th March
Post: dated 29th March
Heading: April, 2008
Post: dated 1st April
Post: dated 4th April
etc…
Add a date header like this:
', '

' ); ?>
To produce something like this:
Heading: 25th March, 2008
Post: dated 08:00 on 25th March
Post: dated 11:37 on 25th March
Post: dated 15:33 on 25th March
Heading: 22th March, 2008
Post: dated 09:12 on 25th March
Post: dated 10:16 on 25th March
etc…
Add a date header like this:
", "

" ); ?>
It’s up to you to style it with CSS then (although your theme may handle this for you).

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Intermittent Date」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1 | 1.1 | trunk |

延伸相關外掛(你可能也想知道)

  • The Loops 》The Loops 外掛為在網站中顯示內容及使用者列表提供更大的彈性。它提供了一個在 WordPress 網站管理介面中的圖形使用者介面,讓你可以對資料庫進行查詢,而不...。
  • In The Loop 》及時掌握最新訊息!, 並非所有外掛都提供在文章內容前或後自動添加程式碼的方式,或者你可能想在每篇文章中加入其他的HTML、CSS或JavaScript,這就是你的機會...。

文章
Filter
Apply Filters
Mastodon