This plugin is outdated and might not be supported anymore
Custom Post Type Permalinks

Custom Post Type Permalinks

Details
View on WordPress

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

Translators

Also checkout

Setting on Code

Example:

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);

Details

Plugin code:
custom-post-type-permalinks
Plugin version:
3.5.3
Author:
Outdated:
Yes
WP version:
6.1 or higher
PHP version:
7.4 or higher
Test up to WP version:
6.6.2
Total installations:
200,000
Last updated:
2024-10-10
Rating:
Times rated:
71
address
custom-post-type
link
permalink
url