Calling Custom Field within Function wrapped with Divs.

Your function is going to hit the end of that first return and stop. Concatenate the strings and it should start working.

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