plugin-icon

Custom Post Type Permalinks

Edit the permalink of custom post type.
평가
4.8
최근 업데이트일
August 23, 2023
버전
3.5.2
활성화된 설치 항목
200K
Custom Post Type Permalinks

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

번역가

Also checkout

Setting on Code

예:

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

Exclude specific post type

add_filter( 'cptp_is_rewrite_supported_by_foo', '__return_false' ); // or add_filter( 'cptp_is_rewrite_supported', function ( $support , $post_type ) { if ( 'foo' === $post_type ) { return false; } return $support; }, 10, 2);
무료Creator 요금제에서
활성화된 설치 항목
200K
테스트된 버전
6.3.5
이 플러그인은 다운로드 가능하며 워드프레스 독립 호스트 설치에 사용할 수 있습니다.