前言介紹
- 這款 WordPress 外掛「Insert Pages」是 2013-11-20 上架。
- 目前有 40000 個安裝啟用數。
- 上一次更新是 2024-10-31,距離現在已有 184 天。
- 外掛最低要求 WordPress 3.3.0 以上版本才可以安裝。
- 有 69 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
embed | pages | insert | shortcode |
內容簡介
Insert Pages 可讓您使用 Shortcode API,將任何 WordPress 內容(例如,頁面、文章、自訂文章類型)嵌入其他 WordPress 內容。它還包括一個小工具,可將頁面插入到任何小工具區域。
當您開始創建自訂文章類型時,Insert Pages 的真正力量就發揮出來了,不論是在您的佈景主題中以編程方式創建,還是使用另一個插件,例如 Custom Post Type UI。您可以將常見的數據類型(例如視頻、測驗、截止日期)抽象成自己的自訂文章類型,然後通過插入短碼將這些內容顯示在正常頁面和文章中。
高級教程
Wes Modes 貢獻者慷慨地為古騰堡時代撰寫了更新的教程,重點是創建帶有自定義字段和自定義模板以呈現內容的自訂文章類型。在此處閱讀:https://medium.com/@wesmodes/using-wordpress-insert-pages-plugin-with-your-custom-post-types-and-custom-templates-535c141f9635。
範例:常規用例
假設您正在教授一門課程,並且在課程網站上不斷提及作業截止日期。下一學期截止日期更改了,您必須去更改所有參考的位置。相反,您希望只需更改一次日期!使用Insert Pages,您可以執行以下操作:
創建名為 Due Date 的自訂文章類型。
使用 Fri Nov 22, 2013 作為內容創建新的 Assignment 1 Due Date。
編輯所有出現截止日期的頁面,並使用插入頁面工具列按鈕插入對剛剛創建的 Due Date 的引用。請務必將 Display 設置為內容,以便 Fri Nov 22, 2013 在您插入它的任何地方顯示。您剛剛建立的短碼應該看起來像這樣:[insert page='assignment-1-due-date' display='content']。
這就是它!現在,當您要更改截止日期時,只需編輯您創建的 Assignment 1 Due Date 自定義文章,就會自動更新所有插入它的頁面上的日期。
範例:高級用例
假設您的網站有很多視頻內容,您想在顯示視頻的任何位置搭配顯示視頻講稿和視頻長度。您可以只將講稿貼在視頻下的頁面內容中,但這樣您必須在每個顯示該視頻的頁面上進行此操作。 (從架構上來說,這也只是一個壞主意!) 利用 Insert Pages,您可以使用自訂文章類型並創建自訂佈景主題模板,以想要的方式顯示視頻 + 講稿 + 長度!
創建名為 Video 的自訂文章類型。
使用像 Advanced Custom Fields 這樣的插件向您的新 Video 自訂文章類型添加額外的字段。添加Video URL字段,Transcript字段和Video Length字段。
創建一個名為 My Awesome Video 的新 Video,將以下值添加到其字段中:
Video URL: http://www.youtube.com/watch?v=oHg5SJYRHA0
Transcript: We're no strangers to love, You know the rules and so do I…
Video Length: 3:34
在您的佈景主題中創建一個模板,以便我們可以按照所需的方式顯示視頻內容。我不會在此處涵蓋此步驟,因為它相當複雜,但您可以在 WordPress Codex 中找到更多幫助:https://codex.wordpress.org/Theme_Development#Custom_Page_Templates。 假設您創建了
原文外掛簡介
Insert Pages lets you embed any WordPress content (e.g., pages, posts, custom post types) into other WordPress content using the Shortcode API. It also includes a widget for inserting pages into any widget area.
The real power of Insert Pages comes when you start creating custom post types, either programmatically in your theme, or using another plugin like Custom Post Type UI. You can then abstract away common data types (like videos, quizzes, due dates) into their own custom post types, and then show those pieces of content within your normal pages and posts by Inserting them as a shortcode.
Advanced Tutorial
Contributor Wes Modes has graciously written an updated tutorial for the Gutenberg era, focused on creating a custom post type with custom fields and a custom template for rendering content. Read it here: https://medium.com/@wesmodes/using-wordpress-insert-pages-plugin-with-your-custom-post-types-and-custom-templates-535c141f9635
Example: Normal Use Case
Say you teach a course and you’re constantly referring to an assignment due date in your course website. The next semester the due date changes, and you have to go change all of the locations you referred to it. Instead, you’d rather just change the date once! With Insert Pages, you can do the following:
Create a custom post type called Due Date.
Create a new Due Date called Assignment 1 Due Date with Fri Nov 22, 2013 as its content.
Edit all the pages where the due date occurs and use the Insert Pages toolbar button to insert a reference to the Due Date you just created. Be sure to set the Display to Content so Fri Nov 22, 2013 shows wherever you insert it. The shortcode you just created should look something like this: [insert page='assignment-1-due-date' display='content']
That’s it! Now, when you want to change the due date, just edit the Assignment 1 Due Date custom post you created, and it will automatically be updated on all the pages you inserted it on.
Example: Advanced Use Case
Say your site has a lot of video content, and you want to include video transcripts and video lengths along with the videos wherever you show them. You could just paste the transcripts into the page content under the video, but then you’d have to do this on every page the video showed on. (It’s also just a bad idea, architecturally!) With Insert Pages, you can use a custom post type and create a custom theme template to display your videos+transcripts+lengths just the way you want!
Create a custom post type called Video.
Use a plugin like Advanced Custom Fields to add extra fields to your new Video custom post type. Add a Video URL field, a Transcript field, and a Video Length field.
Create a new Video called My Awesome Video with the following values in its fields:
Video URL: http://www.youtube.com/watch?v=oHg5SJYRHA0
Transcript: We’re no strangers to love, You know the rules and so do I…
Video Length: 3:34
Create a template in your theme so we can display the video content as we want. I won’t cover this step here since it’s pretty involved, but you can find more help in the WordPress Codex. Let’s assume you created a template called Video with transcript (video-with-transcript.php) that shows the youtube video in a fancybox, and includes a button that shows the text transcript when a user clicks on it.
Edit the pages where you want the video to show up and use the Insert Pages toolbar button to insert a reference to the Video you just created. Be sure to set the Display to Use a custom template, and select your new template Video with transcript. The shortcode you just created should look something like this: [insert page='my-awesome-video' display='video-with-transcript.php']
That’s it! Now you can create all sorts of video content and know that it’s being tracked cleanly in the database as its own custom post type, and you can place videos all over your site and not worry about lots of duplicate content.
The possibilities are endless!
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Insert Pages」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.4 | 2.4 | 2.5 | 2.6 | 2.7 | 2.8 | 2.9 | 3.0 | 3.1 | 3.8 | 2.7.1 | 2.7.2 | 2.9.1 | 3.0.1 | 3.0.2 | 3.1.1 | 3.1.2 | 3.1.3 | 3.1.4 | 3.1.5 | 3.1.6 | 3.1.7 | 3.1.8 | 3.1.9 | 3.2.0 | 3.2.1 | 3.2.2 | 3.2.3 | 3.2.4 | 3.2.5 | 3.2.6 | 3.2.7 | 3.2.8 | 3.2.9 | 3.3.0 | 3.4.0 | 3.4.1 | 3.4.2 | 3.4.3 | 3.4.4 | 3.4.5 | 3.4.6 | 3.4.7 | 3.5.0 | 3.5.1 | 3.5.2 | 3.5.3 | 3.5.4 | 3.5.5 | 3.5.6 | 3.5.7 | 3.5.8 | 3.5.9 | 3.6.0 | 3.6.1 | 3.7.0 | 3.7.1 | 3.7.2 | 3.7.3 | 3.7.4 | 3.7.5 | 3.7.6 | 3.7.7 | 3.8.1 | 3.9.0 | 3.9.1 | trunk | 3.5.10 | 3.5.3.1 | 3.5.3.2 |
延伸相關外掛(你可能也想知道)
Title and Nofollow For Links (Classic Editor) 》這個外掛程式在插入連結彈出框中恢復了 WordPress 4.2 中刪除的「Title」欄位,並新增了一個「將連結加上 rel="nofollow"」的勾選框。, Gutengerg(區塊編輯...。
PixCodes 》PixCodes 是一個 WordPress 外掛,可以提供簡單易用的短碼(Shortcode)編輯器界面。, 最酷的部分是,透過這個外掛,您可以過濾任何短碼參數或使用自己的佈景...。
LuckyWP Scripts Control 》「LuckyWP Scripts Control」外掛允許您將自訂代碼插入和管理網站。例如,您可以插入 Google Analytics 代碼、Google Search Console 驗證元標記、Facebook ...。
ImageInject 》ImageInject(曾名為 WP Inject)允許您輕鬆地在 WordPress 文章中插入照片和圖像,只需輸入您想要的任何關鍵字,就可以在成千上萬的免費創作共用圖像中搜索...。
Faster Image Insert 》Faster Image Insert 的目標是執行一項正確的事情:, 將內建的媒體管理器下移至一個元框中,直接放在主編輯面板旁邊,讓您完全掌握管理器:打開它,使它折疊...。
Insert Blocks Before or After Posts Content 》這個 WordPress 外掛讓您可以在文章、頁面或任何公開的自訂文章類型中,自動新增內容。您可以在編輯器畫面中(經典編輯器和區塊編輯器皆適用),選擇不在某篇...。
Insert Estimated Reading Time 》這個外掛可以在內容的開頭插入「預估閱讀時間」。, , 可以選擇「分鐘」或「分鐘和秒鐘」。, 可以自由格式輸出。, 可以在首頁、封面頁面、文章和頁面中切換顯...。
Embed Twine 》Embed Twine 是一款能夠輕鬆在 WordPress 頁面和文章中嵌入 Twine 2 故事的外掛程式。, , 從 Twine 中匯出故事, 上傳故事, 複製短代碼, 在頁面上貼上短代碼, ...。
Just Output 》當您直接輸入 HTML 代碼時,版面配置會取決於 WordPress 自動插入的 p 和 br 標籤。, remove_filter( 'the_content', 'wpautop' );, , 您可以透過添加以上代...。
Crudiator 》在 WordPress 中創建自訂表格後,您需要在 WordPress 管理面板中操作那些數據的屏幕嗎?, 在為 WordPress 準備其他數據庫表格(隨後稱為自訂表格)時,通常需...。
WP Better SEO Links 》目前只能使用經典編輯器, 此外掛在撰寫部落格文章或頁面時,增加了額外的功能。當您加入一個連結時,現在連結功能會包括以下選項:, 1. rel="nofollow", 2. r...。
Header Code 》一個可以將任何程式碼嵌入 wp_head() 的最簡單外掛。, 此外掛需要至少 PHP 5.4 版本支援。。
Insert Code 》Insert Code 可讓您在文章或頁面內容之前或之後插入程式碼。它還允許您在文章或頁面內容的第 N 個段落 (
) 之後插入程式碼。這可節省您手動輸入程式...。
Sniplets 》Sniplets 是一款通用的文字插入外掛程式,支援擴充的處理架構。簡單來說,這表示您可以動態地替換帖子中的文字,使用其他地方定義的文字或由其他模組建立的文...。
Insert Footnote 》這個「Insert Footnote」外掛可以在所有文章內容底部添加任何文本或 HTML 代碼。如果你厭倦了那些太過龐大和複雜的插入文本插件,這個簡單、輕量化的插件就非...。