Add array of post id’s to a category?

Not exactly add array, but you can loop through that array and run wp_set_object_terms() on each post id. Just study function’s arguments carefully, because it defaults to overwriting terms, rather that adding.

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