plugin-icon

Custom Post Type Permalinks

Edit the permalink of custom post type.
Note
4.8/5
Version
3.5.3
Installations actives
200K
Mis à jour récemment
Oct 10, 2024
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

Traducteurs

Also checkout

Setting on Code

Par exemple :

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);
Gratuitsur le plan Business
En procédant à l’installation, vous acceptez les Conditions d’utilisation de WordPress.com ainsi que les Conditions de l’extension tierce.
Testé jusqu’à version
WordPress 6.6.4
Cette extension est disponible en téléchargement pour votre site .