custom post single page

You can flush the rewrite rules with this code

flush_rewrite_rules();

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