Link custom post type to page

In WP Admin go to Settings -> Permalinks and Save Changes. You don’t need to change anything, just save. This resets wordpress rewrite rules which usually fixes 404 errors with newly added CPTs.

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