At present I’m using this permalink structure /%category%/%postname%/. There are some existing post type. I want to change permalink for image post type to image/%post_id%/, and don’t want to affect other post type and their permalinks.

2 Answers
2

This will be done when you register_post_type :

  $args = array(
        'rewrite' => array( 'slug' => 'book' ),
      ); 

    register_post_type( 'book', $args );

IMPORTANT ! Remember to go to wp-admin options > permalink and click SAVE on that page for the changes to take effect.

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *