Add term slug in URL of custom post type details page
You need to update below line at where you have register a custom post type using register_post_type function. ‘rewrite’ => array(‘slug’ => ‘movies/%cat%’) To change permalink dynamically of post type you have to add below code in functions.php file : function change_link( $post_link, $id = 0 ) { $post = get_post( $id ); if( $post->post_type … Read more