Is there any way to make a custom field for a post only if the author is a certain user?

This is what You are looking for

https://www.advancedcustomfields.com/resources/custom-location-rules/

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