How to sort by post_date and meta_value_num?

You can actually use two filters to accomplish this.

Use posts_join for the joining of the meta table (unless you know it’s already included in your wp_query. And posts_orderby for the sorting.

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