wordpress插件之Custom Post Type Permalinks

Custom Post Type Permalinks的作者是Toro_Unit,目前有100,000+个有效安装。已经Tested with 5.4.1版本的wordpress。
Description

Custom Post Type Permalinks allow you edit the permalink structure of custom post type.

Change custom taxonomy archive’s permalink to “example.org/post_type/taxonomy_name/term_slug”. Can disable this fix.

And support wp_get_archives( 'post_type=foo' ) and post type date archive (ex. example.com/post_type_slug/date/2010/01/01 ).

This Plugin published on GitHub.

Donation: Please send My Wishlist or Paypal

译:
Japanese(ja) – Toro_Unit
French(fr_FR) – Geoffrey Crofte
Russian(ru_RU) – Olart, Natali_Z
ALSO CHECKOUT
Simple Post Type Permalinks
SETTING ON CODE

如:

register_post_type( 'foo',
array(
'public' => true,
'has_archive' => true,
'rewrite' => array(
"with_front" => true
),
'cptp_permalink_structure' => '%post_id%'
)
);

微慕商城——精选wordpress插件及wordpress主题,帮助站长快速生成wordpress小程序。
微慕WordPress小程序商城 » wordpress插件之Custom Post Type Permalinks

提供最优质的资源集合

立即查看 了解详情