Drop down list with posts within the “add new” page

When you’re calling $loop->the_post(), you’re replacing the global $post instance. You need to call wp_reset_postdata() after your while loop.

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