[WordPress] 外掛分享: Songkick Concerts and Festivals

前言介紹

  • 這款 WordPress 外掛「Songkick Concerts and Festivals」是 2010-11-08 上架。
  • 目前有 700 個安裝啟用數。
  • 上一次更新是 2025-03-11,距離現在已有 54 天。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

saleandro |

外掛標籤

events | widget | concerts | songkick | festivals |

內容簡介

此外掛讓您在 WordPress 博客中顯示 Songkick 使用者、藝術家、場地或都會區的即將到來或過去的活動。 您可以透過加入 Songkick 小工具到您的佈景主題或在部落格中的任何地方加入捷徑 [songkick_concerts_and_festivals] 來顯示活動。
功能

藝術家的即將到來活動
藝術家的過去活動
場地的即將到來活動
使用者的即將到來活動
使用者的過去活動
都會區的即將到來活動。都會區是 Songkick 使用的城市或一組城市,用以通知使用者附近的音樂會。
小工具或捷徑格式
顯示多個藝術家、使用者、場地或都會區的活動
分頁的活動清單
使用 HTML 標記支援由 Schema.org 定義的活動

需求

此外掛使用非商業 Songkick API 金鑰。如果您有商業網站,您需要自己的 Songkick API 金鑰。請仔細閱讀 Songkick 的 API 使用條款。在此申請金鑰:Songkick API 文件
此外掛需要 PHP 5.6.20 或更高版本

設定

前往設定頁面,以配置插件的預設選項。您也可以透過 Plugins/Widget 或透過捷徑選項指定您的設定。

對於使用者,只需在管理介面中輸入您的使用者名稱即可。
對於藝術家,您應該使用藝術家的 Songkick 編號,如藝術家頁面的 URL 中所示。例如,URL “http://www.songkick.com/artists/123-your-name” 的編號為 “123”。
與都會區相同:“http://www.songkick.com/metro_areas/123-city-name” 的編號為 “123”。
場地相同:“http://www.songkick.com/venues/123-venue-name” 的編號為 “123”。

小工具

前往管理小工具頁面,將小工具拖放到側邊欄並進行配置。

捷徑

在任何部落格文章中添加捷徑 [songkick_concerts_and_festivals]。

當使用捷徑時,您可以設定要顯示哪些藝術家、場地、都會區或使用者的活動,以顯示不同實體的活動:

使用者:[songkick_concerts_and_festivals songkick_id=your_username songkick_id_type=user]
藝術家:[songkick_concerts_and_festivals songkick_id=your_artist_id songkick_id_type=artist]
場地:[songkick_concerts_and_festivals songkick_id=your_venue_id songkick_id_type=venue]
都會區:[songkick_concerts_and_festivals songkick_id=your_metro_area_id songkick_id_type=metro_area]

覆寫捷徑設定:

gigography=true|false
number_of_events=integer
show_pagination=true|false
no_calendar_style=true|false — 從事件日期移除行事曆樣式
order=asc|desc — 針對藝術家或使用者事件進行排序

PHP 代碼

您可以直接在您的 PHP 代碼中直接調用捷徑方法:

使用此插件的部落格

知道使用此插件的任何部落格嗎?讓我知道!

貢獻

這是一個我在空閒時間維護的開源項目。我歡迎貢獻!

程式碼存放在

原文外掛簡介

This plugin lets you display upcoming or past events for a Songkick user, artist, venue, or metro area on your WordPress blog.
Events can be displayed by adding the Songkick widget to your template, or by adding the shortcode [songkick_concerts_and_festivals] anywhere in your blog.
Features

Upcoming events for an artist
Past events for an artist
Upcoming events for a venue
Upcoming events for a user
Past events for a user
Upcoming events for a metro area. A metro area is a city or a collection of cities that Songkick uses to notify users of concerts near them.
Widget or shortcode format
Show events for multiple artists, users, venues, or metro areas.
Paginated list of events
HTML markup with support for events as defined by Schema.org

Requirements

This plugin uses a non-commercial Songkick API key. If you have a commercial website, you’ll need your own Songkick API key. Please read through Songkick’s API terms of use. Apply for a key here: Songkick API docs
This plugin requires PHP 5.6.20 or higher

Settings
Go to the Settings page to configure default options for the plugin. You can also specify your settings under Plugins/Widget or via shortcode options.

For a user, simply put your username in the admin interface.
For an artist, you should use the artist’s Songkick id, as shown in the url for your artist page. For example, the url “http://www.songkick.com/artists/123-your-name” has the id “123”.
The same goes for metro areas: “http://www.songkick.com/metro_areas/123-city-name” has the id “123”.
And venues: “http://www.songkick.com/venues/123-venue-name” has the id “123”.

Widget
Go to the admin Widgets page and simply drag the widget into a sidebar and configure it.
Shortcode
Add the shortcode [songkick_concerts_and_festivals] in the content of any blog post.
When using a shortcode, you can set which artist, venue, metro area, or user you want to display events for, allowing you to show events for different entities:

Users: [songkick_concerts_and_festivals songkick_id=your_username songkick_id_type=user]
Artists: [songkick_concerts_and_festivals songkick_id=your_artist_id songkick_id_type=artist]
Venues: [songkick_concerts_and_festivals songkick_id=your_venue_id songkick_id_type=venue]
Metro areas: [songkick_concerts_and_festivals songkick_id=your_metro_area_id songkick_id_type=metro_area]

Override shortcode settings:

gigography=true|false
number_of_events=integer
show_pagination=true|false
no_calendar_style=true|false — removes the calendar style from the event dates
order=asc|desc – sort order for artist or user events

PHP code
You can call the shortcode method directly in your PHP code:

Blogs using this plugin
Know any blogs using this plugin? Let me know!
Contribute
This is an open source project that I maintain during my spare time. I welcome contributions!
The code lives on Github. To send your contribution, fork my project, make your lovely changes, and send me a pull request. Thanks 🙂

各版本下載點

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

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


0.9.1 | 0.9.2 | 0.9.3 | 0.9.4 | 0.9.5 | 0.9.6 | 0.9.7 | trunk | 0.10.0 | 0.10.1 | 0.9.3.2 | 0.9.4.1 | 0.9.4.2 | 0.9.4.3 | 0.9.4.4 | 0.9.4.5 | 0.9.4.6 | 0.9.4.7 | 0.9.4.8 | 0.9.4.9 |

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

  • Feng Custom 》晨風自定義,連結及RSS聚合功能,網頁特效雪花飄落、底部運行天數、網頁灰色、節日氣氛燈籠、輸入框七彩光子特效等等。, 主要功能, , 顯示運行天數, 輸入框七...。

文章
Filter
Apply Filters
Mastodon