[WordPress] 外掛分享: Simple Post Type Permalinks

首頁外掛目錄 › Simple Post Type Permalinks
WordPress 外掛 Simple Post Type Permalinks 的封面圖片
9,000+
安裝啟用
★★★★★
5/5 分(10 則評價)
2478 天前
最後更新
問題解決
WordPress 4.0+ PHP 5.3+ v2.0.5 上架:2015-04-01

內容簡介

輕鬆編輯自訂文章類型的永久網址結構。

簡單文章類型永久連結比自訂文章類型永久連結更簡單而聰明。

可用的標籤包括%post_id%,%postname%,%year%,%monthnum%,%day%,%hour%,%minute%,%second%,%author%。

需要 PHP 版本 5.3 或更高版本。

這個外掛發布在 GitHub 上。

請 Fork 和 Pull Request!

程式碼設定

範例:

register_post_type( 'foo',
array(
"public" => true,
'has_archive' => true,
"rewrite" => [
"with_front" => true
],
"sptp_permalink_structure" => "foo/%post_id%"
)
);

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.5) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Simple Post Type Permalinks」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Edit the permalink structure of custom post type too easy.
Simple Post Type Permalinks is Simple and Smart than Custom Post Type Permalinks.
Available tags are %post_id%, %postname%, %year%, %monthnum%, %day%, %hour%, %minute%, %second%, %author%.
Requires PHP version 5.3 or higher.
This Plugin published on GitHub.
Please Fork and Pull Request!
Setting on Code
Example:
register_post_type( 'foo',
array(
"public" => true,
'has_archive' => true,
"rewrite" => [
"with_front" => true
],
"sptp_permalink_structure" => "foo/%post_id%"
)
);

延伸相關外掛

文章
Filter
Apply Filters
Mastodon