How to display posts by current user in a drop down

Use ‘author’ => get_current_user_id() as an argument for get_posts(). This will restrict the found posts to these of the user which is currently logged in. The best reference for the available parameters is still WP_Query::parse_query() in wp-includes/query.php. It is not exactly an atomic function, but you can find parameters not documented elsewhere – like this … Read more

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