Simple Post Type Permalinks
輕鬆變更自訂內容類型的永久連結。
評分
最近更新:
June 4, 2019
版本
2.0.5
活躍安裝總數
10K
編輯自訂內容類型的永久連結變的非常簡單。
Simple Post Type Permalinks 比 Custom Post Type Permalinks 更加簡單易用。
可供使用的標籤為 %post_id%
、%postname%
、%year%
、%monthnum%
、%day%
、%hour%
、%minute%
、%second%
及 %author%
。
需要 PHP 5.3 版或更新版本。
這個外掛在 GitHub 存放庫上進行開發。
請進行分支及提交提取要求
使用程式碼設定
範例程式碼:
register_post_type( 'foo',
array(
"public" => true,
'has_archive' => true,
"rewrite" => [
"with_front" => true
],
"sptp_permalink_structure" => "foo/%post_id%"
)
);
此外掛程式已可供下載,並可用於你的 WordPress 自助託管安裝。