‘child_of’ in get_posts not working

I think you confused arguments with those for term functions. 🙂

For posts the correct argument is post_parent.

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