Remove custom post type slug not working for child pages

This was solved by using the Permalink Setting: Custom Structure of /%post_id%/

Didn’t find this answer anywhere else, so added it in myself.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)