How can I make existing custom fields easier to edit/add in my theme?

In general the answer is yes and the web is full of good tutorials that would do a better job than I can here.

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