Custom Post Type Archive Error, Takes Last Post as Title and Doesn’t Work

The problem was related with a WordPress update and the permalinks, I simply updated the permalink structure (without modifying it) and everything worked fine.

I don’t know why, but if you’re facing the same problem or something similar is worth trying.

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