Programatically inserted posts not showing in Posts Table

Well, the problem is quite simple: it’s publish, not published.

According to the documentation:

post_status (string / array) – use post status. Retrieves posts by Post Status. Default value is ‘publish‘, but if the user is logged in, ‘private‘ is added.

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