
Simple Post Type Permalinks
v2.0.5Toro_Unit (Hiroshi Urabe) · 2015年4月2日 上架
Easy to change Permalink of custom post type.
- 正在使用
- 8,000+
- 评分
- 5.0 / 5
- 累计下载
- 8.8 万
- 最近更新
- 2019年6月5日
10 条评价需要 WordPress 4.0+已测试到 5.2.31PHP 5.3+
截图
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%"
)
);
