I’ve created a custom post type called media, which supports category as wp core.
Every category contains some articles. I noticed that the direct link is not
I am managing the custom post type via Custom Post UI.
Read more here: Custom post type category in permalink