Conditional statement not working in function

I suspect you’re doing this too early. The loop isn’t setup yet when init is run, so you need to hook it somewhere else. wp_print_scripts and wp_print_styles or get_header are always nice choices. 😉

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