Using the slug of a custom post category as prefix for the underlying custom post slugs

I think your solution is here Include Taxonomy slug in post url

Also, you can try to play with the permalink structure in Settings->Permalinks WordPress admin menu, but I’m not sure that it helps you.

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