[WordPress] 外掛分享: Where I’m Going

前言介紹

  • 這款 WordPress 外掛「Where I'm Going」是 2013-05-02 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2013-06-03,距離現在已有 4352 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.3 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

skustes |

外掛標籤

where | travel | location | adventure | destination |

內容簡介

這款外掛允許您輸入旅遊目的地和日期,然後輕鬆地將這些日期輸出給讀者。 目的地可以連接到WordPress文章和頁面,以將讀者引導到您的內容。 輸出可以完全自定義,以顯示任何格式的目的地和日期。

[wig] 短碼

在你要輸出目的地的地方簡單的插入 [wig] 即可。 如果您想要自訂輸出以顯示過去或未來的日期、一篇文章的連接鏈接、開始和/或結束日期等等,請使用以下參數:

display – 可接受以下值之一:

past – 顯示您過去去過的所有目的地
present(預設)– 顯示您目前所在的所有目的地
future – 顯示您將來會訪問的所有目的地
all – 顯示所有目的地
post – 顯示與WordPress文章或頁面相關聯的所有目的地
no_post – 顯示未與WordPress文章或頁面相關聯的所有目的地

show – 如果有多個與參數相匹配的目的地,您想顯示多少個目的地? (默認值:1)(設置為0以顯示“全部”)。 如果輸出了多個目的地,將在每個目的地後插入斷行符。
display_date_start – 搜尋期間的開始,以Unix時間表示。 覆蓋顯示參數
display_date_end – 搜尋期間的結束,以Unix時間表示。 覆蓋顯示參數
has_post – 可接受:yes,no,all(預設)
format – 可接受以下占位符(任何文本都可以):

%n% – 目的地名稱
%sd% – 目的地開始日期
%sdt% – 目的地開始日期時間
%st% – 目的地開始時間
%ed% – 目的地結束日期
%edt% – 目的地結束日期時間
%et% – 目的地結束時間
%url%…%/url% – 如果目的地與文章有關聯,則連接到URL,如果目的地與文章無關聯,則不輸出URL。
例如:

“%url%%n%%/url%” 輸出:Key West, FL

“%url%%n%%/url% – %sdt% to %edt%” 輸出:Key West, FL – 2013年4月5日 12:00至 2013年4月15日 14:00
= “%n%:%sd% at %st% until %ed% at %et%” 輸出:Key West, FL:2013年4月5日下午12:00至2013年4月15日下午2:00
* date_format – 可接受所有PHP日期選項:http://php.net/manual/en/function.date.php。預設:M d,Y(例如:2013年4月5日)
* time_format – 可接受所有PHP時間選項:http://php.net/manual/en/function.date.php。 預設值:H:i(例如:下午5:36)
* show_error – 如果沒有匹配的目的地,顯示“No destination(s)found”? 可接受0(默認)或1。

短碼示例

[wig] 輸出當前目的地而不顯示開始和結束日期/時間
[wig display=”past” has_post=”yes” show=0] 輸出分配給WordPress文章/頁面的所有過去目的地
[wig display=”future” format=”%url%%n%%/url%:%sd% at %st% until %ed% at %et%” time_format=”h:i a” show=3] 輸出三個未來目的地,目的地名稱作為URL(如果有與文章/頁面有關聯),開始和結束日期/時間,以及格式為 04:36 pm 的時間

原文外掛簡介

This plug-in allows you to input your travel destinations and the dates you’ll be there, then easily output those dates to your readers. Destinations can be linked to WordPress posts and pages to direct your readers to your content. Output is fully customizable to show destinations and dates in any format.
[wig] Shortcode Usage
The current Destination can be output simply by inserting [wig] where you want to output the Destination. If you want to tailor the output to show past or future dates, a link to a post, the start and/or end date, etc, use the following parameters:

display – Accepts any one of the following values:

past – Shows all Destinations that you visited in the past
present (Default) – Shows all Destinations that you’re currently in
future – Shows all Destinations that you’ll be visiting in the future
all – Shows all Destinations
post – Shows all Destinations that are tied to a WordPress post or page
no_post – Shows all Destinations that are not tied to a WordPress post or page

show – How many Destinations do you want to show if there are more than 1 that match the parameters? (Default: 1) (Set to 0 for “all”). If multiple Destinations are output, a line break will be placed after each.
display_date_start – The start of the search period in Unix time. Overrides display parameter
display_date_end – The end of the search period in Unix time. Overrides display parameter
has_post – Accepts: yes, no, all (default)
format – Accepts the following placeholders (any text is allowed):

%n% – The Destination name
%sd% – The Destination start date
%sdt% – The Destination start datetime
%st% – The Destination start time
%ed% – The Destination end date
%edt% – The Destination end datetime
%et% – The Destination end time
%url%…%/url% – If the Destination is tied to a post, the URL will be linked from any text between these. If a Destination is not tied to a post, a URL will not be output.
Examples:

“%url%%n%%/url%” outputs: Key West, FL
“%url%%n%%/url% – %sdt% to %edt%” outputs: Key West, FL – Apr 05, 2013 12:00 to Apr 15, 2013 14:00
= “%n%: %sd% at %st% until %ed% at %et%” outputs: Key West, FL: Apr 05, 2013 at 12:00 until Apr 15, 2013 at 14:00
* date_format – Accepts all PHP date options: http://php.net/manual/en/function.date.php. Default: M d, Y (ex: Apr 05, 2013)
* time_format – Accepts all PHP time options: http://php.net/manual/en/function.date.php. Default: H:i (ex: 17:36)
* show_error – Show “No destination(s) found” if there are no matching destinations? Accepts 0 (default) or 1.
Shortcode Examples

[wig] Outputs the current Destination without start and end date/time
[wig display=”past” has_post=”yes” show=0] Outputs all past Destinations that are assigned to a WordPress post/page.
[wig display=”future” format=”%url%%n%%/url%: %sd% at %st% until %ed% at %et%” time_format=”h:i a” show=3] Outputs 3 future Destinations with destination name as a URL (if tied to a post/page), start and end date/time, and time in the format 04:36 pm

各版本下載點

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

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


0.5 | 1.0 | 1.1 | trunk |

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

  • Meks Easy Maps 》Meks Easy Maps 最初是我們的 Trawell WordPress 主題 的一個功能,但現在它可用於任何 WordPress 網站。, 透過 Meks Easy Maps WordPress 外掛,您可以透過 ...。
  • Advanced S3 Destinations for BackWPup 》此外掛需要 BackWPup 或 BackWPup Pro!, 安裝此外掛後,在「BackWPup-> 設定」頁面中會新增一個名為「S3 目的地」的選項卡。, 在此您可以新增額外的 S3 目的...。
  • CC Travel 》CC Travel 是一款 WordPress 免費外掛。如果你擁有一個旅遊網站,只需使用 CC Travel 即可添加目的地、旅遊行程、出發日期、當地地圖及其他所需的資訊。你完...。

文章
Filter
Apply Filters
Mastodon