[WordPress] 外掛分享: Custom Post Type Multiroutes

WordPress 外掛 Custom Post Type Multiroutes 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Custom Post Type Multiroutes」是 2020-01-05 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2020-01-07,距離現在已有 2242 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.9 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

arg82 |

外掛標籤

routes | multiroutes | multilingual | translate slugs | custom post types |

內容簡介

自訂文章類型多路由外掛可讓您管理、新增、編輯和更新自訂文章類型的多條路由。
最少的設定需求。安裝它,為您的文章輸入路由,然後更新永久連結。

使用情境

假設您有一個名為「畫廊」的自訂文章類型,您想要它顯示在兩個專屬頁面上:

/news/gallery/
/media/album/

而單個頁面的網址將是:/news/gallery/<gallery-name> 及 /media/album/<gallery-name>

您只需要:

轉到「設定」 >「自訂文章類型多路由」(您會看到自訂文章類型的列表)
點選您的「畫廊」文章右側的「新增路由」
輸入這條新路由,例如此案例中的「news/gallery」
針對您要新增的每條路由,重複步驟2和3
如果您想要該路由作為自訂文章類型的專屬頁面,請勾選「重新協商此文章類型的專屬頁面至這些路由」的選框
按下「儲存路由」

此外,各自訂文章類型的 WP 管理後台編輯頁面上也會顯示自訂金鑰盤,您可以從那裡選擇專屬路由。預設會顯示在所有定義的路由上。

如果您使用 WPML 進行多語言管理,在新增路由時,每個活動語言都會產生一個輸入框,因此您可以翻譯這些新的路由。

原文外掛簡介

Custom Post Type Multiroutes allows you to manage, add, edit and update multiple routes for your Custom Post Types.
Minimum configuration needed. Install it, type your routes for your posts and refresh permalinks.
Use case
Say you have a custom post type called ‘Galleries’ and you want it to appear on two archive pages:
/news/gallery/
/media/album/

And its single pages to be: /news/gallery/ and /media/album/
All you have to do is:

Go to Settings > CPT Multiroutes (you will se a list of your custom post types)
Click on “Add Route” for your ‘Galleries’ post.
Fill the new imput for that new route, in this case ‘news/gallery’
Repeat 2&3 per route you want to add.
Select the checkbox ‘Rewrite this post type archive to these routes’ if you want that route to be your archive page for the custom post type.
Click Save Routes.

Additionally a custom Metabox will appear on each of those custom post types on its admin edit page, there you will be able to choose individually on which route you wish the post to be visible. By default it will be visible on all defined routes.
If you are using WPML for multilanguage, when you add a route, an input for each acive language will appear so you can translate those new routes.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Custom Post Type Multiroutes」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

  • CodePeople Post Map for Google Maps 》Google 地圖功能:, ► 在您的博客中最佳位置插入 Google 地圖, ► 在 Google 地圖上處理大量的標記, ► 使用 Google 地圖查找與文章有關的其他條目, ► 可以根據...。
  • VenoMaps – OpenStreetMap & Privacy-Friendly Geo Maps 》這個外掛程式可以創建自訂地圖並將其放置在任何位置:聯繫頁面、文章、側邊欄、頁腳小工具或直接插入您的佈景主題檔案中!, 選擇自訂樣式和地圖大小,上傳自...。
  • Xo for Angular 》Xo 為 Angular 和 WordPress 開發者提供基礎,在這裡他們可以使用最熟悉的工具。, , 使用 WordPress 管理頁面和文章的內容,讓 Xo 動態生成您的路由。, 在 An...。
  • WP-Ultimate-Map 》WP Ultimate Map 是一個 WordPress 外掛,可讓您使用獨特的圖示分組地點,也可以對路線進行分組。您可以在地圖上放置多個地點,繪製多條路線,甚至可以繪製路...。
  • WordPress on Routes 》 WordPress on Routes 是一款 WordPress 外掛,主要受 Ruby 微框架啟發。它為您的 WordPress 實例添加了添加自定義路由的功能,對於表單提交、類似 API 的功...。
  • Custom Page Routes 》。
  • Climbing Cardboard 》這是一個專為攀岩愛好者打造的外掛程式,允許註冊的使用者創建並將攀登路線新增至自己的攀岩卡片/日誌中。此外,該外掛程式可為每位使用者個別及所有使用者計...。
  • Allowed Routes 》定義你的網站允許的路由(Allowed Routes),所有其他路由將會返回 404 錯誤。固定鏈接 (Permalinks) 將會被覆蓋。, 登入、後端路由和本地文件(例如 wp-log...。

文章
Filter
Apply Filters
Mastodon