WordPress 整合 Google Calendar

對於一些未來事件,突然想要使用行事曆來排表,一方面也方便自己或其他朋友觀看

上網搜了搜,看到了這個東東 wpng-calendar :A WordPress plugin for integrating a Google calendar

能夠整合 Google 日曆(Calendar)的外掛套件,實在很棒~

這樣未來只要在 Calendar 中輸入事件,就可以定量的在Wordpress中被看見

一步步來吧!

1.獲得 Google GDate API keywpng-calendar 中可以點進去,認同其規定並輸入自己部落格的網址

可得到一組很長的 key,將其複製起來貼至記事本中,等會需要用到

our key is:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx24u028945yh0hadfjkadflkja;df

2.到 Google 日曆–>左側『管理日曆』–>『您的姓名』點進去,可以看到頁面

3.複製 日曆網址 旁的 『XML』按鈕的鏈結
Calendar-link
舉例得到的鏈結為 http://www.google.com/calendar/feeds/xxxxxxxx%40gmail.com/public/basic

將其修改為 http://www.google.com/calendar/feeds/xxxxxxxx%40gmail.com/public/full

也是將修改後的鏈結複製至記事本中

4.進行路徑的設定

至Wordpress 後台管理介面–>『Setting』–>『WPNG Calendar plugin』

4.1 將第一組申請成功的key 輸入至  Google GDATA API Key 的欄位中
4.2 將第二組得到的鏈結輸入中 Google Calendar Feed 的欄位中
4.3 Maximum # of Entries To Show On A Page 設定一個頁面最多顯示幾筆資料
4.4 Process Calendar Description As Wiki Markup 紅設定為 No
4.5 Show Navigation Links On The Page 紅設定為 Yes(與4.4的設定似乎要相反才不會產生錯誤)

5.建立一個 Page(網頁)

5.1新增一組自訂欄位 show-wpng-calendar 輸入想要顯示一星期中的事件數量(希望翻譯沒翻錯 = =" )
5.2(選用)將留言、通告的選項關閉
5.3 將頁面產生吧!

6.回到前台,就可以看到一個新的 page ,點進去後就可以看到自己在 Google Calendar 的事件囉!

7.收工!

Tags: ,

相關文章

Tags: ,

One comment

Leave a comment

登錄到Facebook: