內容簡介
這個外掛可以在特定的文章/頁面被瀏覽時,將訪客重新導向至其他文章/頁面或是外部 URL。只有當文章/頁面被單獨檢視時才會觸發重導向,文章內容和摘要仍會顯示在首頁和歸檔頁面上。這是將處於 WordPress 控制範圍以外的頁面嵌入到網站架構中的簡單方法。
此外掛會在提交按鈕上方(也就是顯示發佈按鈕時)添加一個自定義表單欄位,該欄位的值應該是當單獨檢視該頁面時要重定向的 URL。
可以舉個例子嗎?假設你已經擁有一個不受 WordPress 控制的外部圖庫,並希望使用 WordPress 的頁面功能將其連結在內。透過本外掛,連結到外部圖庫的頁面會出現在你的頁面選單中(通常在你的側邊欄中),當使用者點擊該頁面時(存取位址列中的永久鏈接),他們會被重新導向到你的圖庫,不管圖庫實際上在哪裡。
外掛標籤
開發者團隊
原文外掛簡介
This plugin will redirect visitors to an alternative post / page or external URL when they attempt to view the specific post / page. The redirect will only happen when the post / page is viewed by itself, post content and other post data such as excerpts will still appear on the homepage and archives. This is an easy way to give permalinks to pages that are outside the control of WordPress and integrate them into your site structure.
This plugin adds a custom form field just above the submit box (where the publish button is shown), the value of this field should be the URL to redirect when that page is viewed.
Can we have an example?
Say you already have an external gallery not controlled by WordPress and you want to include a link to it using the page functionality of WordPress. By using this Plugin, the page redirecting to the external Gallery will appear in your page menu (wherever that is on your site, typically in your sidebar) and when a user clicks it (accesses the permalink in the address bar) they will be redirected to your gallery, wherever that happens to be.
