Put post ID on the custom post type URL
It’s quite easy, actually: Change the generated permalink structure so that it ends with the post ID and not the post slug (but it still contains the post slug): // After you registered the post type: register_post_type( ‘ex_article’, $args ); // .. run this code: global $wp_rewrite; $wp_rewrite->extra_permastructs[‘ex_article’][‘struct’] = ‘sa/%ex_article%/%post_id%’; Then replace the post ID … Read more