內容簡介
這個外掛會將Pinboard的書籤複製到自訂文章類型中並將Pinboard的標籤複製到自訂分類法中。
注意:這不是官方的Pinboard外掛。如果您有任何問題,請向WordPress支援論壇尋求支援。
此外掛:
使用wp-cron或手動使用wp-cli自動執行
使用Pinboard官方API(您需要API金鑰)
遵守API的速率限制
允許您選擇同步固定釘的作者
更新在Pinboard中已經更新的釘子(應該是!),但不會刪除已刪除的釘子
提供了一個Gutenberg/block編輯器塊,用於顯示在兩個指定日期之間創建的釘子列表
請注意,此外掛從Pinboard到您的WordPress安裝執行單向同步。您可以在WordPress中添加自己的書籤,但不會添加到Pinboard中。
說明
安裝插件後,您需要前往「設定」->「Pinboard Sync」並輸入您的API金鑰
(您可以在Pinboard密碼設置畫面中取得)
如果您想要自動同步,那麼您可以打開自動同步選項。
如果您在Pinboard中有大量書籤,則不建議您立即打開自動同步,因為這可能會超時或執行錯誤操作。
如果您能夠使用,則進行大量初始匯入的推薦方法是使用wp-cli配套指令:wp-cli sync-pinboard
WP-CLI指令
如果您可以使用WP-CLI,則可以使用 wp-cli sync-pinboard 命令進行從Pinboard的匯入。
這對於在啟用自動同步之前進行大量初始匯入非常有用。但是,您也可以使用系統cron而不是WP cron運行此命令。
願望清單/路線圖
我在未來的開發中考慮的事情:
輸出釘列表的短碼
僅導入指定的標記
(完成)用於顯示釘子的Gutenberg塊
wp-cli命令中允許重新匯入所有釘子的選項
管理屏幕和元框中更好的前端驗證
更好的錯誤記錄和記錄,包括WP-CLI特定的輸出
更好的初始自動同步(在多個cron運行中)
外掛標籤
開發者團隊
原文外掛簡介
This plugin copies bookmarks from pinboard.in into a custom post type and the Pinboard tags into a custom taxonomy.
Note: This is not an official Pinboard plugin. If you have any problems please direct them to the WordPress support forums for this plugin.
This plugin:
runs automatically using either wp-cron or manually using wp-cli
uses the official Pinboard API (you will need your API key)
obeys the API’s rate limits
allows you to choose an author for synced pins
updates pins in pinboard that have been updated (I think!) but will not remove pins that have been deleted
provides a Gutenberg/block editor block for display a list of pins created between two specified dates
Note that this plugin does a one-way sync from Pinboard to your WordPress install. You can add your own bookmarks in WordPress but they will not be added to Pinboard.
Instructions
Once you have installed the plugin you will need to go to Settings -> Pinboard Sync and enter your API key
(you can get this from your Pinboard password settings screen)
If you want to do automatic sync then you can then also turn on the Auto-sync option.
If you have a lot of pins in Pinboard then it is not recommended that you turn on auto-sync right away as this will probably time out or do bad things.
If you are able then the recommended method for doing a large initial import is to use the bundled wp-cli command: wp-cli sync-pinboard
WP-CLI command
If you can use WP-CLI then you can make use of the wp-cli sync-pinboard command to
do an import from Pinboard. This works particularly well for large first-time imports before you enable the automatic sync. But you could also use the system cron to run this command instead of WP cron.
Wish list / Roadmap
Things I have in mind for future development:
A shortcode for outputting lists of pins
Ability to only import a specified tag
(DONE) A Gutenberg block for displaying pins
Option in wp-cli command to allow re-import of all pins
Better front-end validation in admin screens and meta boxes
Better error logging, and logging in general, including WP-CLI-specific output
Better intial automated sync (over multiple cron runs)
