Custom post type and permalink issue

The filter for post permalinks is post_link.

Hook your update_article_permalink function to the post_link filter to apply your function whenever get_permalink is called.

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