Exclude post on loop by multiple meta key value

Straight from the codex

value (string|array) – Custom field value. It can be an array only when compare is ‘IN’, ‘NOT IN’, ‘BETWEEN’, or ‘NOT BETWEEN’.

SOLUTION

Change compare' => '!=' to compare' => 'NOT IN'

Leave a Comment

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