Types plugin isn’t compatible with my custom post type

You have to call wp_reset_postdata() after rg_get_social_pic_of_the_week(). it runs its own query which is polluting the global $post variable that other functions rely on.

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