How to create frontend Post filter using meta query

Please follow this link

https://aftabablog.wordpress.com/2016/06/16/how-to-create-a-custom-filter-in-wp/

Hope this will give you idea on how to create custom filter based on meta query

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