
內容簡介
總結:Content Importer for Notion 是一個功能強大的 WordPress 外掛,允許您將 Notion 數據庫中的內容直接拉入到您的 WordPress 網站中。該外掛提供了一個靈活的方式來使用短碼顯示和設計 Notion 頁面,管理單個頁面刷新,並在 WordPress 管理員中配置自定義樣式。
問題與答案:
1. 這個外掛的主要功能是什麼?
- 回答:這個外掛的主要功能是從任何 Notion 數據庫中提取內容,使用您的 API 金鑰和數據庫 URL,同時通過短碼來靈活顯示和設計 Notion 頁面,管理單個頁面刷新,並在 WordPress 管理員中配置自定義樣式。
2. 如何使用這個外掛?
- 回答:設定後,導航到 Content Importer for Notion > Notion Pages,查看連接的 Notion 數據庫中的頁面列表。複製頁面的短碼,並將其粘貼到任何 WordPress 文章或頁面中。在 Content Importer for Notion > Styles 下,自定義樣式和全局 CSS。
3. 這個外掛使用了哪些外部服務?
- 回答:這個外掛使用 Notion API 從 Notion 數據庫中提取內容並在 WordPress 中顯示。它不使用 Notion API 更新 Notion 中的內容。需要的數據是生成的開發者整合令牌和數據庫 URL。這些數據存儲在 WordPress 數據庫中。Notion 的內容被存儲在本地作爲自定義帖子類型,這種方式減少 API 調用,提高性能。內容可以手動刷新特定頁面或一次刷新所有頁面。
以上是有關 Content Importer for Notion 外掛的問題與答案。
外掛標籤
開發者團隊
原文外掛簡介
Content Importer for Notion is a powerful WordPress plugin that allows you to pull content from a Notion database directly into your WordPress site. This plugin provides a flexible way to display and style Notion pages using shortcodes, manage individual page refreshes, and configure custom styles in the WordPress admin.
Key Features
Sync Notion Content: Pull content from any Notion database using your API Key and Database URL.
Content Shortcodes: Generate shortcodes for individual Notion pages to display them easily in posts or pages.
Flexible Styling: Customize styles for tables, lists, and list items, and add global custom CSS.
Local Storage: Stores Notion content locally, reducing API calls and improving performance.
Customizable Admin Interface: Set up tabs for easy style and custom CSS management.
Usage
After setup, navigate to Content Importer for Notion > Notion Pages to see a list of pages from your connected Notion database.
Copy the shortcode for a page and paste it into any WordPress post or page.
Customize styles and global CSS under Content Importer for Notion > Styles.
External services
This plugin uses the Notion API to fetch content from Notion databases and display them in WordPress. It does not use the Notion API to update content in Notion. The data that is sent to the api are the Developer Integration Token and the Database URL. These are user generated and stored in the WordPress database. Content from Notion is stored locally as a custom post type. This reduces the number of API calls and improves performance and reduces the number of API calls to Notion. Content can be refreshed manually for specific pages or all pages at once.
This plugin uses the following API calls:
https://api.notion.com/v1/databases/{database_id}/query – Get list of pages in a database
https://api.notion.com/v1/blocks/{database_id}/children – Get list of blocks in a page
https://api.notion.com/v1/pages/{page_id} – Used for getting the title of a page
For more information on the Notion API, please refer to the Notion API documentation.
Privacy
This plugin does not collect any data from your site or users. It only uses the data that you provide to it. The Developer Integration Token and the Database URL are stored in the WordPress database and are not shared with any external services. The content is stored locally as a custom post type and is not shared with any external services.
License
This plugin is licensed under the GPLv2 or later. See https://www.gnu.org/licenses/gpl-2.0.html for details.
