Admin is showing all posts on page 1

so it was $wp_query->set('nopaging', true);

Which was set in a pre_get_posts function. I never thought of searching for this.

I’ve added

if(!is_admin()){
// code
}

So it doesn’t run in the admin.

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