Adding nofollow to all the post links in get_posts with pre_get_posts or WP_Query

Adding nofollow to all the post links in get_posts with pre_get_posts or WP_Query

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