Show Post Types customized in Template Page

The solution found was to update the rewrite rules right after registering my new post type, using this code at the end of the function:

flush_rewrite_rules();

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