I've browsed tons of Q/A on stackexchange, google, wordpress forums... but haven't found yet a definitive answer to what looks like to be a common issue since the introduction of custom post types.
I've set my permalinks structure from Wordpress admin permalink settings page as:
/%post_id%/%post_name%/
since this is a good practice to improve database performance
however, I noticed my custom post types (I have several in one configuration) still appear as:
%cpt_slug%/%post_name%/
while what I really want is
%cpt_slug%/%post_id%/%post_name%/
and actually would love if it could also work as
%cpt_slug%/%post_id%/%taxonomy%/%post_name%/
but as for now, I would like to get the post_id work in the cpt structure
how to achieve this?
there was a wordpress plugin but apparently it was withdrawn because had some issues (and anyway is no longer mantained)